Ejemplo n.º 1
0
        public ActionResult Bank(UserBank UserBank)
        {
            if (!ModelState.IsValid) return View(UserBank);

            var currentUser = userSession.GetCurrent();
            var user = middleManagement.User.Get(currentUser.ID);
            user.Business = UserBank.BankName;
            user.HomePage = UserBank.Url;
            middleManagement.User.Save(user);

            return RedirectToAction("Dashboard", "Leader");
        }
Ejemplo n.º 2
0
        public ActionResult Bank()
        {
            var user = userSession.GetCurrent();

            var userBank = new UserBank
                           {
                               BankName = user.Business,
                               Url = user.HomePage
                           };

            return View(userBank);
        }