Пример #1
0
 public ActionResult SendContactUs(ContactUs obj)
 {
     string message = obj.Email + System.Environment.NewLine + "Email-" + obj.Email + System.Environment.NewLine + "Contact-" + obj.ContactNumber + System.Environment.NewLine + "Name-" + obj.Name;
     Utility.SendEmail("*****@*****.**", message, obj.Subject, obj.Name);
     TempData["Message"] = "Your query has been submitted successfully.";
     return RedirectToAction("ContactUs");
 }
Пример #2
0
 public ActionResult ContactUs()
 {
     var obj = new ContactUs();
     return View(obj);
 }