public async Task <IActionResult> GetListOfGenders()
        {
            var result = _mapper.Map <IEnumerable <GenderDTO> >(await _genderService.GetAllGendersAsync());

            if (result is null)
            {
                return(NoContent());
            }

            _logger.LogInfo("Get list of genders");

            return(Ok(result));
        }