public IActionResult GetDepartment(int id) { var dept = _departmentData.GetDepartment(id); if (dept != null) { return(Ok(dept)); } return(NotFound($"Employee with the id: {id} was not found")); }
public IActionResult GetDepartment(int id) { var dept = _departmentData.GetDepartment(id); if (dept != null) { return(Ok(dept)); } return(NotFound($"Employee with the id: {id} was not found")); }