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 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);
|
|||
|
}
|
|||
|
}
|