예제 #1
0
 public IActionResult GetAllEmployees()
 {
     try
     {
         var employees = _employeeProvider.GetAllEmployeesAsync();
         return(Ok(employees));
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }