59 lines
1.8 KiB
C#
59 lines
1.8 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.StoragesContracts
|
||
{
|
||
/// <summary>
|
||
/// Интерфейс для описания работы с хранилищем для клиентов
|
||
/// </summary>
|
||
public interface IClientStorage
|
||
{
|
||
/// <summary>
|
||
/// Получение полного списка
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
List<ClientViewModel> GetFullList();
|
||
|
||
/// <summary>
|
||
/// Получение фильтрованного списка
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
List<ClientViewModel> GetFilteredList(ClientSearchModel model);
|
||
|
||
/// <summary>
|
||
/// Получение элемента
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
ClientViewModel? GetElement(ClientSearchModel model);
|
||
|
||
/// <summary>
|
||
/// Добавление элемента
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
ClientViewModel? Insert(ClientBindingModel model);
|
||
|
||
/// <summary>
|
||
/// Редактирование элемента
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
ClientViewModel? Update(ClientBindingModel model);
|
||
|
||
/// <summary>
|
||
/// Удаление элемента
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
ClientViewModel? Delete(ClientBindingModel model);
|
||
}
|
||
}
|