// GET: Contacts public async Task <ActionResult> Index() { if (!ActiveCustomer.showMyContacts) { return(HttpNotFound()); } var model = new ContactsViewModel() { Contacts = (await db.GetCustomerContacts(ActiveCustomer)).OrderByDescending(x => x.Activated).ThenBy(x => x.LastName) }; return(View(model)); }