Ejemplo n.º 1
0
        public OperationResult <IUserDTO> RechargeAmount(int id, decimal rechargeAmount)
        {
            OperationResult <IUserDTO> retVal = null;

            try
            {
                IUserDAC userDAC = (IUserDAC)DACFactory.Instance.Create(DACType.UserDAC);
                IUserDTO userDTO = userDAC.RechargeAmount(id, rechargeAmount);
                retVal = OperationResult <IUserDTO> .CreateSuccessResult(userDTO);
            }
            catch (DACException dacEx)
            {
                retVal = OperationResult <IUserDTO> .CreateErrorResult(dacEx.Message, dacEx.StackTrace);
            }
            catch (Exception ex)
            {
                ExceptionManager.HandleException(ex);
                retVal = OperationResult <IUserDTO> .CreateErrorResult(ex.Message, ex.StackTrace);
            }
            return(retVal);
            //throw new NotImplementedException();
        }