public ActionResult Delete(Layout layout) { try { // TODO: Add delete logic here LayoutManager.Delete(layout); return(RedirectToAction("Index")); } catch { return(View(layout)); } }