コード例 #1
0
 public ActionResult PostPaid(PostPaidModel postObj)
 {
     try
     {
         PaymentBLL bllObj = new PaymentBLL();
         int?       Result = bllObj.PostPaid(postObj);
     }
     catch (Exception ex)
     {
         logger.Info(ex.Message);
         logger.Debug(ex.Message);
     }
     return(View());
 }
コード例 #2
0
        public int?PostPaid(PostPaidModel postobj)
        {
            HttpResponseMessage message = new HttpResponseMessage();
            PaymentBLL          bllobj  = new PaymentBLL();
            int?Result = bllobj.PostPaid(postobj);

            if (Result > 0)
            {
                message.Content = new StringContent("LOGIN SUCCESS");
            }
            else
            {
                message.Content = new StringContent("LOGIN FAIL");
            }
            return(Result);
        }
コード例 #3
0
 public int?PostPaid(PostPaidModel postobj)
 {
     try
     {
         using (var paymentEntities = new BillPaymentEntities())
         {
             return((from postPaid in paymentEntities.PostPaids
                     where postPaid.MobileNumber == postobj.MobileNumber &&
                     postPaid.Operator == postobj.Operator
                     select postPaid).ToList().Count() > 0 ? 1 : 0);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message);
         return(null);
     }
 }
コード例 #4
0
        /// <summary>
        /// This method represents to get all post paids
        /// </summary>
        /// <returns></returns>
        public IList <PostPaidModel> GetAllPostPaidModel()
        {
            List <PostPaidModel> postPaidModelList = new List <PostPaidModel>();
            var postPaidDetails = this.postPaidRepository.Query();

            foreach (var postPaid in postPaidDetails)
            {
                var postpPaidModel = new PostPaidModel
                {
                    Amount       = postPaid.Amount,
                    BillType     = postPaid.BillType,
                    ConsumerNo   = postPaid.ConsumerNo,
                    DateModified = postPaid.DateModified,
                    Id           = postPaid.Id,
                    MobileNumber = postPaid.MobileNumber,
                    PaidAmount   = postPaid.PaidAmount,
                    ProductId    = postPaid.ProductId
                };
                postPaidModelList.Add(postpPaidModel);
            }
            return(postPaidModelList);
        }
コード例 #5
0
 public int?PostPaid(PostPaidModel postobj)
 {
     return(_PaymentAdapter.PostPaid(postobj));
 }
コード例 #6
0
 public int?PostPaid(PostPaidModel postobj)
 {
     return(paymentDAL.PostPaid(postobj));
 }
コード例 #7
0
 public int?PostPaid(PostPaidModel postobj)
 {
     throw new NotImplementedException();
 }