Example #1
0
        public ActionResult RequestForQuoteForm(RequestForQuoteForm vm)
        {
            if (ModelState.IsValid)
            {
                string st = "<strong>Request for Quote Form</strong><br><br>";
                st += "From: " + vm.FullName + "<br>";
                st += "Company: " + vm.Company + "<br>";
                st += "Phone: " + vm.Phone + "<br>";
                st += "Email: " + vm.Email + "<br><br>";
                st += "Interest in Product Number: " + vm.Quest1 + "<br>";
                st += "Interested in Category: " + vm.Quest2 + "<br>";
                st += "Quantity Needed: " + vm.Quest3 + "<br><br>";
                st += "Comments: " + vm.Comments + "<br>";

                Utility.SendFormEmail(st);

                return RedirectToAction("ThankYou");
            }
            return View(vm);
        }
Example #2
0
 public ActionResult RequestForQuoteForm(string productNo, string catID)
 {
     RequestForQuoteForm vm = new RequestForQuoteForm();
     ViewBag.productNo = HttpContext.Request.QueryString["productNo"];
     ViewBag.catID = HttpContext.Request.QueryString["cat"];
     return View(vm);
 }