Пример #1
0
        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());
        }
Пример #2
0
 public ListDto <SpecialtyDto, int> GetAllSpecialties(GetAllSpecialtiesDto request)
 => _readRepository.GetAllSpecialties(request);
Пример #3
0
 public ListDto <SpecialtyDto, int> GetAllSpecialties(GetAllSpecialtiesDto request)
 => GetAll <SpecialtyDto>(request, w => request.Description == null || w.Description.Contains(request.Description));