public async Task <IActionResult> Get(int id)
        {
            var genero = await _genderService.GetGender(id);

            if (genero == null)
            {
                return(NotFound());
            }

            var generoDTO = _mapper.Map <GenderDTO>(genero);

            return(Ok(generoDTO));
        }
Esempio n. 2
0
        public async Task <List <EmployeeGender> > GetGender()
        {
            var genders = await _service.GetGender();

            return(genders);
        }