REORG
This commit is contained in:
parent
fcea41f8c1
commit
f46ca00de9
13 changed files with 105 additions and 125 deletions
|
|
@ -18,7 +18,7 @@ namespace isnd.Helpers
|
|||
return v.Package.OwnerId == userId;
|
||||
}
|
||||
|
||||
public static RegistrationPage[] CreateRegistrationPages(this IEnumerable<RegistrationLeaf> leaves,
|
||||
public static RegistrationPageIndex CreateRegistrationPages(this IEnumerable<RegistrationLeaf> leaves,
|
||||
string bid)
|
||||
{
|
||||
List<RegistrationPage> pages = new List<RegistrationPage>();
|
||||
|
|
@ -28,19 +28,18 @@ namespace isnd.Helpers
|
|||
var lbi = leaves.Where(l=>l.Entry.Id == id).OrderBy(l=>
|
||||
new Version(l.Entry.version));
|
||||
var latest = new Version(lbi.Last().Entry.version);
|
||||
pages.Add(new RegistrationPage
|
||||
{
|
||||
Id = bid + id + "/" + latest.Major + "."
|
||||
pages.Add(new RegistrationPage(bid + id + "/" + latest.Major + "."
|
||||
+ latest.Minor + "."
|
||||
+ latest.Build,
|
||||
+ latest.Build)
|
||||
{
|
||||
Count = lbi.Count(),
|
||||
Lower = new Version(lbi.First().Entry.version),
|
||||
Upper = latest,
|
||||
Items = lbi.ToArray(),
|
||||
Items = lbi.ToList(),
|
||||
Parent = bid + id + "/" + ApiConfig.IndexDotJson,
|
||||
});
|
||||
}
|
||||
return pages.ToArray();
|
||||
return new RegistrationPageIndex(pages);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue