21 lines
761 B
C#
21 lines
761 B
C#
using SmallSoftwareContracts.DataModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SmallSoftwareContracts.StoragesContracts;
|
|
|
|
internal interface ISoftwareStorageContract
|
|
{
|
|
Task<List<SoftwareHistoryDataModel>> GetListAsync(CancellationToken ct);
|
|
List<SoftwareDataModel> GetList(bool onlyActive = true, string? manufacturerId = null);
|
|
List<SoftwareHistoryDataModel> GetHistoryBySoftwareId(string softwareId);
|
|
SoftwareDataModel? GetElementById(string id);
|
|
SoftwareDataModel? GetElementByName(string name);
|
|
void AddElement(SoftwareDataModel softwareDataModel);
|
|
void UpdElement(SoftwareDataModel softwareDataModel);
|
|
void DelElement(string id);
|
|
}
|