public ActionResult Delete(int id, BusinessLogicLayer.OfferBLL collection) { try { using (ContextBll ctx = new ContextBll()) { ctx.DeleteOffer(collection); } return(RedirectToAction("Index")); } catch (Exception Ex) { ViewBag.Exception = Ex; return(View("Error")); } }