public IActionResult GetAllEmployeeById(int id)
        {
            var employee = _employeeService.GetEmployeeById(id);

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

            return(Ok(employee));
        }
Esempio n. 2
0
 // GET api/values/5
 public IEnumerable <EmployeeInfo> Get(int id)
 {
     return(new EmployeeInfo[] { _service.GetEmployeeById(id) });
 }