public async Task <IActionResult> GetGenderListAsync( CancellationToken token = default) { try { var serviceResult = await _genderService.GetGenderListAsync(token); return(new OkObjectResult(Mapper.Map <IEnumerable <GetGenderResponseDto> >(serviceResult))); } catch (Exception) { return(new BadRequestResult()); } }