Ejemplo n.º 1
0
        public ActionResult UpdateLimit()
        {
            User authentacatedUser = _userRepository.GetUserByPhone(User.Identity.Name);

            if (authentacatedUser != null)
            {
                UpdateLimitModel model = new UpdateLimitModel();
                model.CurrentUser   = authentacatedUser;
                model.Profiles      = _profilesRepository.GetAll();
                ViewBag.IsMyCabinet = true;
                ViewBag.InfoMessage = TempData["UpdateLimitSuccessMessage"];
                ViewBag.UserPhone   = authentacatedUser.Phone;
                return(View(model));
            }
            else
            {
                throw new Exception(Translation.Translation.AccessIsDeniedMessage);
            }
        }