public int?DTHPayment(DthModel DTHobj) { try { using (var paymentEntities = new BillPaymentEntities()) { return((from Dth in paymentEntities.DthService where Dth.SubsID == DTHobj.SubscriberNumber && Dth.Operator == DTHobj.Operator select Dth).ToList().Count() > 0 ? 1 : 0); } } catch (Exception ex) { logger.Error(ex.Message); return(null); } }
public ActionResult DthPayment(DthModel dthObj) { try { PaymentBLL bllObj = new PaymentBLL(); int? Result = bllObj.DTHPay(dthObj); if (Result > 0) { ViewBag.Result = "Success"; } else { ViewBag.Result = "Fail"; } } catch (Exception ex) { logger.Info(ex.Message); logger.Debug(ex.Message); } return(View()); }
public int?DTHPay(DthModel dthobj) { return(_PaymentAdapter.DTHPayment(dthobj)); }