53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
|
using AircraftPlantContracts.BindingModels;
|
|||
|
using AircraftPlantContracts.SearchModels;
|
|||
|
using AircraftPlantContracts.ViewModels;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AircraftPlantContracts.BusinessLogicsContracts
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Интерфейс для описания работы бизнес-логики для компонентов
|
|||
|
/// </summary>
|
|||
|
public interface IComponentLogic
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Получение списка
|
|||
|
/// </summary>
|
|||
|
/// <param name="model"></param>
|
|||
|
/// <returns></returns>
|
|||
|
List<ComponentViewModel>? ReadList(ComponentSearchModel? model);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Получение отдельной записи
|
|||
|
/// </summary>
|
|||
|
/// <param name="model"></param>
|
|||
|
/// <returns></returns>
|
|||
|
ComponentViewModel? ReadElement(ComponentSearchModel model);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Создание записи
|
|||
|
/// </summary>
|
|||
|
/// <param name="model"></param>
|
|||
|
/// <returns></returns>
|
|||
|
bool Create(ComponentBindingModel model);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Изменение записи
|
|||
|
/// </summary>
|
|||
|
/// <param name="model"></param>
|
|||
|
/// <returns></returns>
|
|||
|
bool Update(ComponentBindingModel model);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Удаление записи
|
|||
|
/// </summary>
|
|||
|
/// <param name="model"></param>
|
|||
|
/// <returns></returns>
|
|||
|
bool Delete(ComponentBindingModel model);
|
|||
|
}
|
|||
|
}
|