Exemplo n.º 1
0
 public ActionResult Index(VistorContactUsViewModel aModel)
 {
     ViewBag.ContactTabClass = "active";
     ViewBag.ContactUs       = "active";
     if (ModelState.IsValid)
     {
         try
         {
             var aContact = new Contact()
             {
                 FirstName = aModel.FirstName,
                 LastName  = aModel.LastName,
                 Email     = aModel.Email,
                 Message   = aModel.Message
             };
             _contactRepository.SendMessage()
         }
         catch (Exception)
         {
             throw;
         }
     }
     return(View(aModel));
 }
Exemplo n.º 2
0
        public IViewComponentResult Invoke()
        {
            var vistorContactUs = new VistorContactUsViewModel();

            return(View(vistorContactUs));
        }