public async Task <EmployeeViewModel> GetEmployeeById(string id) { var emp = new EmployeeViewModel(); emp = await _empRespository.GetEmployeeById(id); return(emp); }
public EmployeeInfo GetEmployeeById(int Id) { Employee employee = _repository.GetEmployeeById(Id).FirstOrDefault(); return(GetAtributes(employee)); }