public async Task <IActionResult> GetGenderByIdAsync( [FromRoute] int genderId, CancellationToken token = default) { try { var serviceResult = await _genderService.GetGenderByIdAsync(genderId, token); return(new OkObjectResult(Mapper.Map <GetGenderResponseDto>(serviceResult))); } catch (Exception) { return(new NotFoundResult()); } }