Ejemplo n.º 1
0
        public UserModelApi BlockBetAmount(string email, decimal betAmount)
        {
            IUserFacade noticeFacade = (IUserFacade)FacadeFactory.Instance.Create(FacadeType.UserFacade);
            OperationResult <IUserDTO> resultActive = noticeFacade.BlockBetAmount(email, betAmount);
            UserModelApi user = null;

            if (resultActive.IsValid())
            {
                user                = new UserModelApi();
                user.Name           = resultActive.Data.Name;
                user.EmailId        = resultActive.Data.EmailId;
                user.AccountBalance = resultActive.Data.AccountBalance;
                user.BlockedAmount  = resultActive.Data.BlockedAmount;
            }

            else
            {
            }
            return(user);
        }