public ActionResult Create(ScheduleSender ScheduleSender)
        {
            if (ModelState.IsValid)
            {
                ScheduleSenderBusiness.Insert(ScheduleSender);
                ScheduleSenderBusiness.Save();
                return(RedirectToAction("Index"));
            }

            return(View(ViewNamesConstant.FrontendScheduleSendersCreate, ScheduleSender));
        }
        public ActionResult Create([Bind(Include = "ScheduleSenderID,ScheduleSenderEmail,CreatedDate,ModifiedDate")] ScheduleSender ScheduleSender)
        {
            if (ModelState.IsValid)
            {
                ScheduleSenderBusiness.Insert(ScheduleSender);
                ScheduleSenderBusiness.Save();
                return(RedirectToAction("Index"));
            }

            return(View(ViewNamesConstant.FrontendScheduleSendersCreate, ScheduleSender));
        }
예제 #3
0
        public ActionResult Delete(int ItemID)
        {
            ScheduleSender ScheduleSender = ScheduleSenderBusiness.Find(ItemID);

            ScheduleSender.ModifiedDate = DateTime.Now;
            ScheduleSender.Draft        = true;
            ScheduleSenderBusiness.Update(ScheduleSender);
            ScheduleSenderBusiness.Save();
            return(RedirectToAction("Index"));
        }