auto.bus_api/Server/Services/IVehicleEnrollmentManagementService.cs
cuqmbr 39fddff553 refactor: change VehicleEnrollment CRUD to perform only compound data manipulations
This removes enpoints where you can CRUD only VehicleEnrollment database table and refines those where you can CRUD both VehicleEnrollment and RouteAddressDetail
2023-05-24 16:53:31 +03:00

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);
}