public async Task <IActionResult> GetAllEmployees()
 {
     try
     {
         return(Ok(await _IEmployeeLogic.GetAll()));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }
Example #2
0
        public async Task <ActionResult> GetAll()
        {
            var employees = await _employeeLogic.GetAll();

            return(Ok(employees));
        }