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