Exemplo n.º 1
0
 // GET: Account
 public ActionResult Index(UserAccountListViewModel userAccount)
 {
     using (CYBInfrastrctureContext db = new CYBInfrastrctureContext())
     {
         return(View(userAccount));
     }
 }
        public ActionResult Index()

        {
            try
            {
                //var locations = _usersInRole.GetAll();
                var locations = UserManager.GetAll();
                var llvm      = new UserAccountListViewModel
                {
                    UserAccounts = locations
                };
                //ViewData["Username"] = User.Identity.Name;
                return(View(llvm));
            }
            catch (Exception ex)
            {
                //Log exception
                return(View(ex.Message, "Error"));
            }
        }