public async Task <ActionResult> DeleteScenario(int id) { try { var isDelete = await _scenario.DeleteScenarioSV(id); if (isDelete) { return(NoContent()); } else { return(NotFound()); } } catch (Exception) { return(BadRequest()); } }
public async Task <ActionResult> DeleteScenario(int id) { try { var isDelete = await _scenario.DeleteScenarioSV(id); if (isDelete) { return(NoContent()); } else { return(NotFound()); } } catch (Exception) { return(BadRequest()); } }