Beispiel #1
0
        public ActionResult SendContactUsForm(Contact contact)
        {
            string message = "";

            if (InformationService.AddContact(contact, out message))
            {
                TempData["Message"] = message;
                if (TempData.ContainsKey("Message"))
                {
                    ViewBag.Message = TempData["Message"].ToString();
                }
                return(PartialView("Information/_SendContactUsFormMessage"));
            }
            else
            {
                return(PartialView("Error"));
            }
        }