Пример #1
0
        public ActionResult Contact()
        {
            GeneralMessageViewModel contact = new GeneralMessageViewModel();

            return View(contact);
        }
Пример #2
0
        public JsonResult GeneralMessageForm(GeneralMessageViewModel newmessage)
        {
            var response = newmessage.SendForm();

            var data = new
            {
                message = "Message Sent!"
            };

            return Json(data);
        }