// GET: ScheduleSenders/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(View(ViewNamesConstant.FrontendHomeError));
            }
            ScheduleSender ScheduleSender = ScheduleSenderBusiness.Find(id);

            if (ScheduleSender == null)
            {
                return(View(ViewNamesConstant.FrontendHomeError));
            }
            return(View(ViewNamesConstant.FrontendScheduleSendersDetails, ScheduleSender));
        }
        // GET: ScheduleSenders/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ScheduleSender ScheduleSender = ScheduleSenderBusiness.Find(id);

            if (ScheduleSender == null)
            {
                return(HttpNotFound());
            }
            return(View(ViewNamesConstant.FrontendScheduleSendersDetails, ScheduleSender));
        }
Esempio n. 3
0
        // GET: ScheduleSenders/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ScheduleSender ScheduleSender = ScheduleSenderBusiness.Find(id);

            if (ScheduleSender == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Ecards         = EcardBusiness.AllNoTracking.Where(x => x.Draft != true).Select(x => new { x.EcardID, x.EcardName }).ToDictionary(k => k.EcardID, v => v.EcardName);
            ViewBag.EgreetingUsers = EgreetingUserBusiness.AllNoTracking.Where(x => x.Draft != true).Select(x => new { x.EgreetingUserID, x.Email }).ToDictionary(k => k.EgreetingUserID, v => v.Email);
            return(View(ViewNamesConstant.AdminScheduleSendersDetails, ScheduleSender));
        }