Example #1
0
        public ActionResult Create(ContacUsViewModel pro)
        {
            ContactUsClient CC = new ContactUsClient();

            CC.Create(pro.contacUs);
            return(RedirectToAction("HomePage", "Home"));
        }
Example #2
0
        // GET: ContactUs
        public ActionResult Index()
        {
            ContactUsClient contact = new ContactUsClient();

            ViewBag.listcontactus = contact.findAll();

            return(View());
        }