Exemplo n.º 1
0
 public ActionResult ContactUs(ContactUsModel model)
 {
     if (ModelState.IsValid)
     {
         MailSender.SendEmail("*****@*****.**", model.UserEmail, "Monator's user", "User feedback for MONATOR", model.Message);
         model.Session = Session;
         return RedirectToAction("ContactUsSuccess");
     }
     model.Session = Session;
     return View(model);
 }
Exemplo n.º 2
0
 public ActionResult ContactUs()
 {
     var viewModel = new ContactUsModel();
     viewModel.Session = Session;
     return View(viewModel);
 }