예제 #1
0
        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));
        }
예제 #2
0
        // 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));
        }