Esempio n. 1
0
 public ActionResult PrePaidView(FormCollection forms)
 {
     try
     {
         //var Data_Session = new LoginModel();
         //if ((Object)Session["txtMobileNumber"] != null)
         //{
         //    Data_Session.Session_Val = "Welcome" + Convert.ToInt64(Session["MobileNumber"]).ToString();
         //}
         //else
         //{
         //    Data_Session.Session_Val = "Session Expired";
         //}
         PrePaidModel preobj = new PrePaidModel();
         PaymentBLL   bllobj = new PaymentBLL();
         int?         result = bllobj.CheckNumber(Convert.ToInt64(forms["txtMobileNumber"]), forms["dllOperator"]);
         if (result > 0)
         {
             preobj.PrepaidList = bllobj.Display(forms["dllOperator"]);
         }
     }
     catch (Exception ex)
     {
         logger.Info(ex.Message);
         logger.Debug(ex.Message);
     }
     return(View());
 }
        public List <PrePaidModel> GetDetails(string MobileOperator, long MobileNumber)
        {
            PrePaidModel modelObj = new PrePaidModel();
            PaymentBLL   bllObj   = new PaymentBLL();
            int?         result   = bllObj.CheckNumber(MobileNumber, MobileOperator);

            if (result > 0)
            {
                modelObj.PrepaidList = bllObj.Display(MobileOperator);
            }

            return(modelObj.PrepaidList);
        }