Exemplo n.º 1
0
        public IActionResult CreateAccount(string accountName)
        {
            Guid userGuid = Guid.Parse(Read("userGuid"));
            var  userDto  = _userApiService.GetUserDto(userGuid);

            Set("accountsPosition", 0.ToString());
            try
            {
                _userApiService.CreateMoneyAccountForUser(accountName, userGuid);
                return(LoadOverview(string.Empty));
            }
            catch (Exception e)
            {
                return(LoadOverview(MessageHandler(e, "Unknown Error: CreateAccount")));
            }
        }