using MedicalDatabaseContracts.Models; using MedicalDatabaseContracts.SearchModels; using MedicalDatabaseContracts.ViewModels; namespace MedicalDatabaseContracts { public interface ILogic where M : AbstractModel where V : AbstractViewModel where S : AbstractSearchModel { List? ReadList(S? searchModel); V? ReadElement(int id); bool Create(M model); bool Update(M model); bool Delete(int id); } }