diff --git a/src/isnd/Controllers/AccountController.cs b/src/isnd/Controllers/AccountController.cs index c0f920e..19ad443 100644 --- a/src/isnd/Controllers/AccountController.cs +++ b/src/isnd/Controllers/AccountController.cs @@ -18,7 +18,7 @@ namespace isn.Controllers { [AllowAnonymous] public class AccountController : Controller - { + { private readonly IAuthenticationSchemeProvider _schemeProvider; private readonly SignInManager _signInManager; @@ -62,7 +62,7 @@ namespace isn.Controllers [ValidateAntiForgeryToken] public async Task Login(LoginInputModel model, string button) { - + // the user clicked the "cancel" button if (button != "login") { diff --git a/src/isnd/Controllers/PackageVersionController.cs b/src/isnd/Controllers/PackageVersionController.cs index d6710fd..77ea3cc 100644 --- a/src/isnd/Controllers/PackageVersionController.cs +++ b/src/isnd/Controllers/PackageVersionController.cs @@ -24,7 +24,7 @@ namespace isn { var applicationDbContext = _context.PackageVersions.Include(p => p.Package).Where(p => p.PackageId.StartsWith(model.PackageId)); - model.Versions = await applicationDbContext.ToListAsync(); + model.Versions = await applicationDbContext.ToArrayAsync(); return View(model); } @@ -38,7 +38,7 @@ namespace isn p => (string.IsNullOrEmpty(model.PackageId) || p.PackageId.StartsWith(model.PackageId)) && p.Package.OwnerId == userId); - model.Versions = await applicationDbContext.ToListAsync(); + model.Versions = await applicationDbContext.ToArrayAsync(); return View("Index", model); } diff --git a/src/isnd/ViewModels/PackageVersionIndexViewModel.cs b/src/isnd/ViewModels/PackageVersionIndexViewModel.cs index bb4bf7e..5dad0cd 100644 --- a/src/isnd/ViewModels/PackageVersionIndexViewModel.cs +++ b/src/isnd/ViewModels/PackageVersionIndexViewModel.cs @@ -5,7 +5,9 @@ namespace isn.ViewModels { public class PackageVersionIndexViewModel { - public List Versions {get; set;} + public PackageVersion[] Versions {get; set;} public string PackageId { get; set; } + + public bool Prerelease { get; set; } } } \ No newline at end of file diff --git a/src/isnd/Views/Shared/_LoginPartial.cshtml b/src/isnd/Views/Shared/_LoginPartial.cshtml index e3de4e3..8ae339b 100644 --- a/src/isnd/Views/Shared/_LoginPartial.cshtml +++ b/src/isnd/Views/Shared/_LoginPartial.cshtml @@ -6,7 +6,7 @@ @if (SignInManager.IsSignedIn(User)) {