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

53 lines
1.4 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 IProcedureLogic
{
/// <summary>
/// Получить список
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<ProcedureViewModel>? ReadList(ProcedureSearchModel? model);
/// <summary>
/// Получить отдельную запись
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ProcedureViewModel? ReadElement(ProcedureSearchModel model);
/// <summary>
/// Создать запись
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Create(ProcedureBindingModel model);
/// <summary>
/// Изменить запись
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Update(ProcedureBindingModel model);
/// <summary>
/// Удалить запись
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Delete(ProcedureBindingModel model);
}
}