You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OptifitWebService/Server/IServices/IFormationsService.cs

17 lines
606 B

using Server.Dto.Request;
using Server.Dto.Response;
using Shared.Criteria;
namespace Server.IServices;
public interface IFormationsService
{
Task<ResponseFormationDto?> GetFormationById(string id);
Task<(long Count, IEnumerable<ResponseFormationDto> Formations)> GetFormations
(string? name, int page, int size, FormationOrderCriteria orderCriteria, bool ascending = true);
Task<ResponseFormationDto?> CreateFormation(RequestFormationDto formation);
Task<ResponseFormationDto?> UpdateFormation(string id, RequestFormationDto formation);
Task<bool> DeleteFormation(string id);
}