public BaseResponse <List <PreCharge> > SavePreCharge(PreCharge request, string CreateBy, DateTime CreateDate)
        {
            BaseResponse <List <PreCharge> > response = new BaseResponse <List <PreCharge> >();

            response.Data = new List <PreCharge>();
            unitOfWork.BeginTransaction();
            var preItem = new PreCharge()
            {
                BALANCEID     = request.BALANCEID,
                AMOUNT        = request.AMOUNT,
                PAYMENTTYPE   = request.PAYMENTTYPE,
                PAYER         = request.PAYER,
                RECEIPTNO     = request.RECEIPTNO,
                OPERATOR      = request.OPERATOR,
                PRECHARGETIME = CreateDate,
                COMMENT       = request.COMMENT,
                CREATEBY      = CreateBy,
                CREATETIME    = CreateDate,
                ISDELETE      = false
            };

            base.Save <LTC_PRECHARGE, PreCharge>(preItem, (q) => q.PRECHARGEID == preItem.PRECHARGEID);

            unitOfWork.Commit();
            response.Data.Add(preItem);
            return(response);
        }
        public IHttpActionResult SavePreCharge(PreCharge baseRequest)
        {
            CreateBy   = SecurityHelper.CurrentPrincipal.LoginName;
            CreateDate = DateTime.Now;
            var response = service.SavePreCharge(baseRequest, CreateBy, CreateDate);

            return(Ok(response));
        }