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