PIbd-21_MasenkinMS_SUBD_Rou.../RouteGuide/RouteGuideContracts/BusinessLogicsContracts/IStopLogic.cs

53 lines
1.5 KiB
C#
Raw Normal View History

2024-04-01 02:43:20 +04:00
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>
2024-04-02 18:46:47 +04:00
/// Получение списка
2024-04-01 02:43:20 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
2024-04-02 18:46:47 +04:00
List<StopViewModel>? ReadList(StopSearchModel? model);
2024-04-01 02:43:20 +04:00
/// <summary>
2024-04-02 18:46:47 +04:00
/// Получение отдельной записи
2024-04-01 02:43:20 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
2024-04-02 18:46:47 +04:00
StopViewModel? ReadElement(StopSearchModel model);
2024-04-01 02:43:20 +04:00
/// <summary>
2024-04-02 18:46:47 +04:00
/// Создание записи
2024-04-01 02:43:20 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
2024-04-02 18:46:47 +04:00
bool Create(StopBindingModel model);
2024-04-01 02:43:20 +04:00
/// <summary>
2024-04-02 18:46:47 +04:00
/// Изменение записи
2024-04-01 02:43:20 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
2024-04-02 18:46:47 +04:00
bool Update(StopBindingModel model);
2024-04-01 02:43:20 +04:00
/// <summary>
2024-04-02 18:46:47 +04:00
/// Удаление записи
2024-04-01 02:43:20 +04:00
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
2024-04-02 18:46:47 +04:00
bool Delete(StopBindingModel model);
2024-04-01 02:43:20 +04:00
}
}