This removes enpoints where you can CRUD only VehicleEnrollment database table and refines those where you can CRUD both VehicleEnrollment and RouteAddressDetail
24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using System.Dynamic;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using SharedModels.DataTransferObjects.Model;
|
|
using SharedModels.QueryParameters;
|
|
using SharedModels.QueryParameters.Objects;
|
|
|
|
namespace Server.Services;
|
|
|
|
public interface IVehicleEnrollmentManagementService
|
|
{
|
|
Task<(bool isSucceed, IActionResult actionResult, VehicleEnrollmentDto enrollment)>
|
|
AddEnrollment(CreateVehicleEnrollmentDto createEnrollmentDto);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, IEnumerable<ExpandoObject> enrollments, PagingMetadata<ExpandoObject> pagingMetadata)>
|
|
GetEnrollments(VehicleEnrollmentParameters parameters);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, ExpandoObject enrollment)>
|
|
GetEnrollment(int id, string? fields);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult, VehicleEnrollmentDto enrollment)>
|
|
UpdateEnrollment(int vehicleEnrollmentId, UpdateVehicleEnrollmentDto updateEnrollmentDto);
|
|
|
|
Task<(bool isSucceed, IActionResult actionResult)> DeleteEnrollment(int id);
|
|
} |