19 lines
490 B
C#
Raw Normal View History

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
{
List<V>? ReadList(S? searchModel);
V? ReadElement(int id);
2024-05-08 14:52:50 +04:00
bool Create(M model);
bool Update(M model);
bool Delete(M model);
}
}