コード例 #1
0
        public ActionResult Index()
        {
            IndexAccountViewModel model = new IndexAccountViewModel();

            model.Utilizadores = db.Users.ToList();
            model.Funcoes      = db.Roles.ToList();
            return(View(model));
        }
コード例 #2
0
        // 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));
        }