WIP NuGet API 3.5.0

This commit is contained in:
Paul Schneider 2022-04-17 14:10:20 +01:00
commit a4a1c6e271
12 changed files with 172 additions and 98 deletions

View file

@ -91,7 +91,7 @@ namespace isnd
public async Task<IActionResult> DeleteConfirmed(string PackageId, string FullString,
string Type)
{
PackageVersion packageVersion = await _context.PackageVersions.Include(p => p.Package)
PackageVersion packageVersion = await _context.PackageVersions
.FirstOrDefaultAsync(m => m.PackageId == PackageId
&& m.FullString == FullString && m.Type == Type);
if (packageVersion == null) return NotFound();