public async Task <ActionResult> Delete(DirectionDto value) { try { if (ModelState.IsValid) { await db.Delete(value); return(RedirectToAction("Index")); } } catch { ModelState.AddModelError("", "Unable to save changes. Try again, and if the problem persists see your system administrator."); } return(View("index")); }