public ActionResult Delete(int id, CharacterBO _character) { try { using (BLLContext ctx = new BLLContext()) { ctx.DeleteCharacter(id); return(RedirectToAction("Index")); } } catch (Exception ex) { Logger.Log(ex); return(View("Error")); } }