示例#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}"));
     }
 }
示例#2
0
 public IActionResult ListSystem()
 {
     return(View(systemLogic.GetAllSystem()));
 }