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 IRecipeLogic
|
|
{
|
|
/// <summary>
|
|
/// Получение списка
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
List<RecipeViewModel>? ReadList(RecipeSearchModel? model);
|
|
|
|
/// <summary>
|
|
/// Получение отдельной записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
RecipeViewModel? ReadElement(RecipeSearchModel model);
|
|
|
|
/// <summary>
|
|
/// Создание записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Create(RecipeBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Изменение записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Update(RecipeBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Удаление записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Delete(RecipeBindingModel model);
|
|
}
|
|
}
|