PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantContracts/StoragesContracts/IMessageInfoStorage.cs

45 lines
1.3 KiB
C#
Raw Normal View History

2024-05-04 22:30:27 +04:00
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 IMessageInfoStorage
{
/// <summary>
/// Получение полного списка
/// </summary>
/// <returns></returns>
List<MessageInfoViewModel> GetFullList();
/// <summary>
/// Получение фильтрованного списка
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<MessageInfoViewModel> GetFilteredList(MessageInfoSearchModel model);
/// <summary>
/// Получение элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
MessageInfoViewModel? GetElement(MessageInfoSearchModel model);
/// <summary>
/// Добавление элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
MessageInfoViewModel? Insert(MessageInfoBindingModel model);
}
}