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

53 lines
1.6 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 IScheduleLogic
{
/// <summary>
/// Получение списка
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<ScheduleViewModel>? ReadList(ScheduleSearchModel? model);
/// <summary>
/// Получение отдельной записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
ScheduleViewModel? ReadElement(ScheduleSearchModel model);
/// <summary>
/// Создание записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Create(ScheduleBindingModel model);
/// <summary>
/// Изменение записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Update(ScheduleBindingModel model);
/// <summary>
/// Удаление записи
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool Delete(ScheduleBindingModel model);
}
}