public async Task <IReadOnlyList <PrestationCategory> > GettAllPrestationCategories(PrestationCategorySpecParams specParams) { var spec = new PrestationsCategorySpecification(specParams); return(await _unitOfWork.Prestations.GetPrestationCategoriesAsync(spec)); }
public async Task <PrestationCategory> GetPrestationCategoryById(int id) { var spec = new PrestationsCategorySpecification(id); return(await _unitOfWork.Prestations.GetPrestationCategoryAsync(spec)); }