PIbd-21_MasenkinMS_Coursewo.../Hospital/HospitalContracts/BusinessLogicsContracts/IDiseaseLogic.cs

53 lines
1.6 KiB
C#
Raw Permalink Normal View History

2024-04-16 02:44:22 +04:00
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>
2024-04-25 02:20:10 +04:00
/// Получить список
2024-04-16 02:44:22 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<DiseaseViewModel>? ReadList(DiseaseSearchModel? model);
/// <summary>
2024-04-25 02:20:10 +04:00
/// Получить отдельную запись
2024-04-16 02:44:22 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DiseaseViewModel? ReadElement(DiseaseSearchModel model);
/// <summary>
2024-04-25 02:20:10 +04:00
/// Создать запись
2024-04-16 02:44:22 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Create(DiseaseBindingModel model);
/// <summary>
2024-04-25 02:20:10 +04:00
/// Изменить запись
2024-04-16 02:44:22 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Update(DiseaseBindingModel model);
/// <summary>
2024-04-25 02:20:10 +04:00
/// Удалить запись
2024-04-16 02:44:22 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Delete(DiseaseBindingModel model);
}
}