public async Task <ActionResult <Employe> > GetEmploye(int id) { try { var result = await _employ.GetEmploye(id); if (result == null) { return(NotFound()); } return(result); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, "Server Problem")); } }