예제 #1
0
        public ActionResult Contact(ContactUsViewModel model)
        {
            if (ModelState.IsValid)
            {
                var repo = HomeFactory.GetRepo();

                try
                {
                    repo.AddContact(model.contactUs);
                    return(RedirectToAction("Index"));
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            else
            {
                return(View());
            }
        }
예제 #2
0
        public ActionResult Specials()
        {
            var model = HomeFactory.GetRepo().GetSpecials();

            return(View(model));
        }
예제 #3
0
        public ActionResult Index()
        {
            var model = HomeFactory.GetRepo().GetHomePage();

            return(View(model));
        }