Package deletion and types
This commit is contained in:
@ -6,6 +6,7 @@ using System.Text.Json.Serialization;
|
||||
using isnd.Data;
|
||||
using isnd.Data.Packages;
|
||||
using isnd.Entities;
|
||||
using NuGet.Packaging.Core;
|
||||
|
||||
namespace isnd.ViewModels
|
||||
{
|
||||
@ -37,7 +38,11 @@ namespace isnd.ViewModels
|
||||
{
|
||||
version = package.GetLatestVersion(),
|
||||
description = package.Description,
|
||||
versions = package.Versions.Select(v => new SearchVersionInfo(regId, v)).ToArray()
|
||||
versions = package.Versions.Select(v => new SearchVersionInfo(apiBase, v)).ToArray(),
|
||||
packageTypes = package.Versions.Select(v=>new PackageType(v.Type, new System.Version(v.Major,v.Minor,v.Patch, v.Revision)))
|
||||
.ToArray(),
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user