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/IExperiencesService.cs

18 lines
665 B

using Server.Dto.Request;
using Server.Dto.Response;
using Shared.Criteria;
namespace Server.IServices;
public interface IExperiencesService
{
Task<ResponseExperienceDto?> GetExperienceById(string id);
Task<(long Count, IEnumerable<ResponseExperienceDto> Experiences)> GetExperiences
(string? title, int page, int size,
ExperienceOrderCriteria orderCriteria = ExperienceOrderCriteria.EndDate, bool ascending = true);
Task<ResponseExperienceDto?> CreateExperience(RequestExperienceDto experience);
Task<ResponseExperienceDto?> UpdateExperience(string id, RequestExperienceDto experience);
Task<bool> DeleteExperience(string id);
}