PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IMessageInfoLogic.cs
2024-05-06 03:46:17 +04:00

39 lines
1.1 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 IMessageInfoLogic
{
/// <summary>
/// Получение списка
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<MessageInfoViewModel>? ReadList(MessageInfoSearchModel? model);
/// <summary>
/// Получение отдельной записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
MessageInfoViewModel? ReadElement(MessageInfoSearchModel model);
/// <summary>
/// Создание записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Create(MessageInfoBindingModel model);
}
}