コード例 #1
0
        public override void DeleteTreeViewObject()
        {
            RouteService service = new RouteService();

            service.DeleteRoute(this);
            service.RemoveRouteFromCell(ProcesCell, this);
        }
コード例 #2
0
        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());
        }
コード例 #3
0
 public IActionResult Delete(int id)
 {
     service.DeleteRoute(id);
     return(Ok());
 }
コード例 #4
0
 public ActionResult DeleteConfirmed(int id)
 {
     _routeService.DeleteRoute(id);
     return(RedirectToAction("Index"));
 }