public ActionResult Index() { var model = new ContactUs(); var contacts = Contacts.GetContacts(); model.Contacts = contacts; return this.View(this.GetRazorView<AreaRegistration>("ContactUs/Index.cshtml"), model); }
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); }