Exemplo n.º 1
0
 public IActionResult DeleteStar(string id)
 {
     try
     {
         systemLogic.DeleteSystem(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(500, $"Internal server error : {ex}"));
     }
 }
Exemplo n.º 2
0
 public IActionResult DeleteSystem(string id)
 {
     systemLogic.DeleteSystem(id);
     return(View(nameof(ListSystem), systemLogic.GetAllSystem()));
 }