コード例 #1
0
        public User AddWinningAmount(string emailid, int amount, decimal multiply)
        {
            OperationResult <IUserDto> resultUser = _userFacade.AddWinningAmount(emailid, amount, multiply);
            User result = new User();

            if (resultUser.IsValid())
            {
                result.Name           = resultUser.Data.Name;
                result.EmailId        = resultUser.Data.EmailId;
                result.AccountBalance = resultUser.Data.AccountBalance;
                result.BlockedAmount  = resultUser.Data.BlockedAmount;
            }
            else
            {
            }
            return(result);
        }