public IActionResult Get([FromQuery] GetAllSpecialtiesDto requestDto) { var response = _specialtyAppService.GetAllSpecialties(requestDto); return(CreateResponse <SpecialtyDto>() .FromErrorEnum(SpecialtyDto.Error.GetAllSpecialty) .WithMessage(AppConsts.LocalizationSourceName, SpecialtyDto.Error.GetAllSpecialty) .WithDto(response) .Build()); }
public ListDto <SpecialtyDto, int> GetAllSpecialties(GetAllSpecialtiesDto request) => _readRepository.GetAllSpecialties(request);
public ListDto <SpecialtyDto, int> GetAllSpecialties(GetAllSpecialtiesDto request) => GetAll <SpecialtyDto>(request, w => request.Description == null || w.Description.Contains(request.Description));