Example #1
0
        public ActionResult Feedback(Models.Feedback question)
        {
            Models.WebsiteDb database = new WebsiteDb();

            if (ModelState.IsValid)
            {
                database.Feedback.Add(question);
                database.SaveChanges();

                return RedirectToAction("Index");
            }
            else
            {
                return View(question);
            }
        }
Example #2
0
        public ActionResult RechargeNow(Models.Orders orders)
        {
            Models.WebsiteDb database = new WebsiteDb();

            if (ModelState.IsValid)
            {
                database.Orders.Add(orders);
                database.SaveChanges();

                return RedirectToAction("Confrim");
            }
            else
            {
                return View(orders);
            }
        }