コード例 #1
0
        public ActionResult ApproveLoan(string PhoneNumber, string Title, string Message)
        {
            try
            {
                Notification notify = new Notification();
                notify.PhoneNumber = PhoneNumber;
                notify.Title       = Title;
                notify.Message     = Message;
                notify.Date        = DateTime.Now;
                string send     = approve.SendNotification(notify);
                string response = approve.Approve(PhoneNumber);
                return(Json(response));
            }
            catch (Exception ex)
            {
                return(Json("Error"));

                throw;
            }
        }
コード例 #2
0
        public ActionResult ChangeOneTimeFeeStatus(string PhoneNumber, string Status)
        {
            try
            {
                objfee.Status = Status;

                string response = objpro.Status(PhoneNumber, Status);
                if (Status == "Not Paid")
                {
                    ApproveRegistrationDal apd    = new ApproveRegistrationDal();
                    Notification           notify = new Notification();
                    notify.PhoneNumber = PhoneNumber;
                    notify.Title       = "NotPaid";
                    notify.Message     = "One Time Processing Fee is not Paid so loan status is Pending ";
                    notify.Date        = DateTime.Now;
                    string send = apd.SendNotification(notify);
                }
                else
                if (Status == "Paid")
                {
                    ApproveRegistrationDal apd    = new ApproveRegistrationDal();
                    Notification           notify = new Notification();
                    notify.PhoneNumber = PhoneNumber;
                    notify.Title       = "NotPaid";
                    notify.Message     = "One Time Processing Fee is Paid ";
                    notify.Date        = DateTime.Now;
                    string send = apd.SendNotification(notify);
                }

                return(Json(response));
            }
            catch (Exception ex)
            {
                return(Json("Error"));

                throw;
            }
        }