PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantContracts/StoragesContracts/IComponentStorage.cs
2024-02-21 01:42:28 +04:00

59 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 IComponentStorage
{
/// <summary>
/// Получение полного списка
/// </summary>
/// <returns></returns>
List<ComponentViewModel> GetFullList();
/// <summary>
/// Получение фильтрованного списка
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<ComponentViewModel> GetFilteredList(ComponentSearchModel model);
/// <summary>
/// Получение элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ComponentViewModel? GetElement(ComponentSearchModel model);
/// <summary>
/// Добавление элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ComponentViewModel? Insert(ComponentBindingModel model);
/// <summary>
/// Редактирование элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ComponentViewModel? Update(ComponentBindingModel model);
/// <summary>
/// Удаление элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ComponentViewModel? Delete(ComponentBindingModel model);
}
}