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