public override void DeleteTreeViewObject() { RouteService service = new RouteService(); service.DeleteRoute(this); service.RemoveRouteFromCell(ProcesCell, this); }
public async Task <IActionResult> Delete() { using var reader = new System.IO.StreamReader(Request.Body); var path = await reader.ReadToEndAsync(); await _routeService.DeleteRoute(path); return(Ok()); }
public IActionResult Delete(int id) { service.DeleteRoute(id); return(Ok()); }
public ActionResult DeleteConfirmed(int id) { _routeService.DeleteRoute(id); return(RedirectToAction("Index")); }