Exemplo n.º 1
0
        public IActionResult LoadAccountView(Guid accountGuid, string errorMessage)
        {
            Guid userGuid = Guid.Parse(Read("userGuid"));
            var  userDto  = _userApiService.GetUserDto(userGuid);

            try
            {
                var account = _userApiService.LoadMoneyAccount(accountGuid);
                ViewBag.errorMessage = errorMessage;
                ViewBag.account      = account;
                ViewBag.user         = userDto;
                Set("accountPosition", 0.ToString());
                ViewBag.accountPosition = Read("accountsPosition");
                ViewBag.IsLoggedIn      = "true";
                return(View("ManageAccountView"));
            }
            catch (Exception e)
            {
                return(LoadLoginView(MessageHandler(e, "Unknown Error: LoadAccountView")));
            }
        }