53 lines
1.5 KiB
C#
53 lines
1.5 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>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
List<StopViewModel>? ReadList(StopSearchModel? model);
|
|
|
|
/// <summary>
|
|
/// Получение отдельной записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
StopViewModel? ReadElement(StopSearchModel model);
|
|
|
|
/// <summary>
|
|
/// Создание записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Create(StopBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Изменение записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Update(StopBindingModel model);
|
|
|
|
/// <summary>
|
|
/// Удаление записи
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
bool Delete(StopBindingModel model);
|
|
}
|
|
}
|