예제 #1
0
        public IActionResult DeleteTransaction(Guid accountGuid, Guid moneyItemGuid)
        {
            Guid userGuid = Guid.Parse(Read("userGuid"));

            Set("accountPosition", 0.ToString());
            try
            {
                _userApiService.DeleteMoneySpentItem(accountGuid, moneyItemGuid);
                return(LoadAccountView(accountGuid, String.Empty));
            }
            catch (Exception e)
            {
                return(LoadAccountView(accountGuid, e.Message));
            }
        }