public ActionResult <IEnumerable <Models.System> > GetAllSystem() { try { var systems = systemLogic.GetAllSystem(); return(Ok(systems)); } catch (Exception ex) { return(StatusCode(500, $"Internal server error : {ex}")); } }
public IActionResult ListSystem() { return(View(systemLogic.GetAllSystem())); }