public ActionResult Details(int?id) { if (id == null) { return(View(ViewNamesConstant.FrontendHomeError)); } Ecard ecard = EcardBusiness.Find(id); if (ecard == null) { return(View(ViewNamesConstant.FrontendHomeError)); } return(View(ViewNamesConstant.AdminEcardsDetails, ecard)); }
// GET: Ecards/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Ecard ecard = EcardBusiness.Find(id); if (ecard == null) { return(HttpNotFound()); } return(View(ViewNamesConstant.AdminEcardsDetails, ecard)); }