PIbd-21_MasenkinMS_SUBD_Rou.../RouteGuide/RouteGuideContracts/BusinessLogicsContracts/IStopLogic.cs
2024-04-01 02:43:20 +04:00

59 lines
1.8 KiB
C#

using RouteGuideContracts.BindingModels;
using RouteGuideContracts.SearchModels;
using RouteGuideContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RouteGuideContracts.BusinessLogicsContracts
{
/// <summary>
/// Интерфейс для описания работы бизнес-логики для остановок
/// </summary>
public interface IStopLogic
{
/// <summary>
/// Получение полного списка
/// </summary>
/// <returns></returns>
List<StopViewModel> GetFullList();
/// <summary>
/// Получение фильтрованного списка
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<StopViewModel> GetFilteredList(StopSearchModel model);
/// <summary>
/// Получение элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
StopViewModel? GetElement(StopSearchModel model);
/// <summary>
/// Добавление элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
StopViewModel? Insert(StopBindingModel model);
/// <summary>
/// Редактирование элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
StopViewModel? Update(StopBindingModel model);
/// <summary>
/// Удаление элемента
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
StopViewModel? Delete(StopBindingModel model);
}
}