public UserModelApi AddWinningPrize(string email, decimal betAmount, decimal multiplyFactor) { IUserFacade noticeFacade = (IUserFacade)FacadeFactory.Instance.Create(FacadeType.UserFacade); OperationResult <IUserDTO> resultActive = noticeFacade.AddWinningPrize(email, betAmount, multiplyFactor); 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); }