public ActionResult Index()
        {
            var model = new ViewModels.ContactUs();
            var contacts = Contacts.GetContacts();
            model.Contacts = contacts;

            this.Session[TokenKey] = model.Token;

            return this.View(this.GetRazorView<AreaRegistration>("ContactUs/Index.cshtml"), model);
        }
Exemple #2
0
        public ActionResult Index()
        {
            var model    = new ViewModels.ContactUs();
            var contacts = Contacts.GetContacts();

            model.Contacts = contacts;

            this.Session[TokenKey] = model.Token;

            return(this.View(this.GetRazorView <AreaRegistration>("ContactUs/Index.cshtml"), model));
        }