public ActionResult Details(Int32?Businessgalleryid) { using (BusinessGalleryCtl db = new BusinessGalleryCtl()) { BusinessGalleryClass obj_BusinessGallery = db.selectById(Businessgalleryid); return(View(obj_BusinessGallery)); } }
public ActionResult Edit(Int32?Businessgalleryid) { using (BusinessGalleryCtl db = new BusinessGalleryCtl()) { BusinessGalleryClass obj_BusinessGallery = db.selectById(Businessgalleryid); Session["EditPreviousURL"] = Convert.ToString(ControllerContext.HttpContext.Request.UrlReferrer); return(View(obj_BusinessGallery)); } }