Exemple #1
0
        public async Task <EmployeeViewModel> GetEmployeeById(string id)
        {
            var emp = new EmployeeViewModel();

            emp = await _empRespository.GetEmployeeById(id);

            return(emp);
        }
Exemple #2
0
        public EmployeeInfo GetEmployeeById(int Id)
        {
            Employee employee = _repository.GetEmployeeById(Id).FirstOrDefault();

            return(GetAtributes(employee));
        }