public ActionResult Index() { IndexAccountViewModel model = new IndexAccountViewModel(); model.Utilizadores = db.Users.ToList(); model.Funcoes = db.Roles.ToList(); return(View(model)); }
// GET: /Account public ActionResult Index() { var customerId = System.Web.HttpContext.Current.User.Identity.Name; var response = _customerService.GetCustomer(new GetCustomerRequest { Id = new Guid(customerId) }); var model = new IndexAccountViewModel { Customer = response.Customer }; return(View(model)); }