This removes enpoints where you can CRUD only RouteAddress database table and refines those where you can CRUD both Route and RouteAddress
25 lines
909 B
C#
25 lines
909 B
C#
using System.Dynamic;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using SharedModels.DataTransferObjects.Model;
|
|
using SharedModels.QueryParameters;
|
|
using SharedModels.QueryParameters.Objects;
|
|
|
|
namespace Server.Services;
|
|
|
|
public interface IRouteManagementService
|
|
{
|
|
Task<(bool isSucceed, IActionResult actionResult, RouteDto route)>
|
|
AddRoute(CreateRouteDto createRouteDto);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, IEnumerable<ExpandoObject> routes, PagingMetadata<ExpandoObject> pagingMetadata)>
|
|
GetRoutes(RouteParameters parameters);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, ExpandoObject route)>
|
|
GetRoute(int id, string? fields);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, UpdateRouteDto route)>
|
|
UpdateRoute(int id, UpdateRouteDto updateRouteDto);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult)> DeleteRoute(int id);
|
|
}
|