Import from internal git
This commit is contained in:
25
Generator/Services/RepositoryService.cs
Normal file
25
Generator/Services/RepositoryService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Core;
|
||||
using Core.SpecConfig;
|
||||
using Generator.Repo;
|
||||
|
||||
namespace Generator.Services;
|
||||
|
||||
public class RepositoryService
|
||||
{
|
||||
private readonly RepositoryActions _actions;
|
||||
|
||||
public RepositoryService(RepositoryActions actions)
|
||||
{
|
||||
_actions = actions;
|
||||
}
|
||||
|
||||
public async Task<List<PackageData>> GetVersions(Language language, string package)
|
||||
{
|
||||
return await _actions.GetVersions(language, package);
|
||||
}
|
||||
|
||||
public async Task DeletePackage(string packageId)
|
||||
{
|
||||
await _actions.DeleteVersion(packageId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user