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)); }
public async Task <List <EmployeeGender> > GetGender() { var genders = await _service.GetGender(); return(genders); }