53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using HospitalContracts.BindingModels;
|
|
using HospitalContracts.SearchModels;
|
|
using HospitalContracts.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HospitalContracts.BusinessLogicsContracts
|
|
{
|
|
/// <summary>
|
|
/// Интерфейс для описания работы бизнес-логики для сущности "Болезнь"
|
|
/// </summary>
|
|
public interface IDiseaseLogic
|
|
{
|
|
/// <summary>
|
|
/// Получить список
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
List<DiseaseViewModel>? ReadList(DiseaseSearchModel? model);
|
|
|
|
/// <summary>
|
|
/// Получить отдельную запись
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
DiseaseViewModel? ReadElement(DiseaseSearchModel model);
|
|
|
|
/// <summary>
|
|
/// Создать запись
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Create(DiseaseBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Изменить запись
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Update(DiseaseBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Удалить запись
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Delete(DiseaseBindingModel model);
|
|
}
|
|
}
|