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); } }
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); } }