public async Task <IActionResult> GetEmployees() { try { var employees = await serviceapi.GetEmployees(); if (employees == null) { return(NotFound()); } return(Ok(employees)); } catch (Exception) { return(BadRequest()); } }