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()); }
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); }
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); } }
/// <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); }
public int?PostPaid(PostPaidModel postobj) { return(_PaymentAdapter.PostPaid(postobj)); }
public int?PostPaid(PostPaidModel postobj) { return(paymentDAL.PostPaid(postobj)); }
public int?PostPaid(PostPaidModel postobj) { throw new NotImplementedException(); }