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()); } }
public ActionResult Specials() { var model = HomeFactory.GetRepo().GetSpecials(); return(View(model)); }
public ActionResult Index() { var model = HomeFactory.GetRepo().GetHomePage(); return(View(model)); }