public IActionResult DeletePlanet(string id)
 {
     try
     {
         planetLogic.DeletePlanet(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(500, $"Internal server error : {ex}"));
     }
 }
Exemple #2
0
 public IActionResult DeletePlanet(string id)
 {
     planetLogic.DeletePlanet(id);
     return(View(nameof(ListPlanet), planetLogic.GetAllPlanet()));
 }