Beispiel #1
0
        public ActionResult Contact(ContactUs record)
        {
            if (ModelState.IsValid)
            {
                ContactUs.Create(record);
                return(RedirectToAction("Contact"));
            }

            // Breadcrumb
            ViewBag.Breadcrumb = new List <Breadcrumb> {
                new Breadcrumb {
                    Title = "صفحه اصلی", Url = "/", Position = 1
                },
                new Breadcrumb {
                    Title = "تماس با ما", Url = Url.Action(nameof(Contact), "Home"), Position = 2
                }
            };
            ViewBag.ContactUsDetails = ContactPage_Tb.Read();

            return(View(record));
        }