Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareContracts/StoragesContracts/ISoftwareStorageContract.cs
2025-04-24 00:06:05 +04:00

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);
}