2024-05-08 14:52:50 +04:00
|
|
|
|
using MedicalDatabaseContracts.Models;
|
|
|
|
|
using MedicalDatabaseContracts.SearchModels;
|
|
|
|
|
using MedicalDatabaseContracts.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace MedicalDatabaseContracts
|
|
|
|
|
{
|
|
|
|
|
public interface ILogic<M, V, S>
|
|
|
|
|
where M : AbstractModel
|
|
|
|
|
where V : AbstractViewModel
|
|
|
|
|
where S : AbstractSearchModel
|
|
|
|
|
{
|
2024-05-15 01:13:04 +04:00
|
|
|
|
List<V> ReadList(S? searchModel);
|
|
|
|
|
List<V> ReadList(S? searchModel, out long elapsedMilliseconds);
|
2024-05-14 23:57:22 +04:00
|
|
|
|
V? ReadElement(int id);
|
2024-05-15 01:13:04 +04:00
|
|
|
|
V? ReadElement(int id, out long elapsedMilliseconds);
|
2024-05-08 14:52:50 +04:00
|
|
|
|
bool Create(M model);
|
2024-05-15 01:13:04 +04:00
|
|
|
|
bool Create(M model, out long elapsedMilliseconds);
|
2024-05-08 14:52:50 +04:00
|
|
|
|
bool Update(M model);
|
2024-05-15 01:13:04 +04:00
|
|
|
|
bool Update(M model, out long elapsedMilliseconds);
|
2024-05-14 23:59:01 +04:00
|
|
|
|
bool Delete(int id);
|
2024-05-15 01:13:04 +04:00
|
|
|
|
bool Delete(int id, out long elapsedMilliseconds);
|
2024-05-08 14:52:50 +04:00
|
|
|
|
}
|
|
|
|
|
}
|