Inheritance: IWebsitePage
 public ActionResult Index()
 {
     var model = new ContactUs();
     var contacts = Contacts.GetContacts();
     model.Contacts = contacts;
     return this.View(this.GetRazorView<AreaRegistration>("ContactUs/Index.cshtml"), model);
 }
示例#2
0
        public async Task<ActionResult> IndexAsync()
        {
            var model = new ContactUs();

            var contacts = await Contacts.GetContactsAsync(this.Tenant).ConfigureAwait(true);
            model.Contacts = contacts;
            return this.View(this.GetRazorView<AreaRegistration>("ContactUs/Index.cshtml", this.Tenant), model);
        }