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