public ActionResult DisApproveLoan(string PhoneNumber, string Title, string Message)
        {
            try
            {
                ApproveRegistrationDal apd    = new ApproveRegistrationDal();
                Notification           notify = new Notification();
                notify.PhoneNumber = PhoneNumber;
                notify.Title       = Title;
                notify.Message     = Message;
                notify.Date        = DateTime.Now;
                string send     = apd.SendNotification(notify);
                string response = approve.DisApprove(PhoneNumber);
                return(Json(response));
            }
            catch (Exception ex)
            {
                return(Json("Error"));

                throw;
            }
        }
Ejemplo n.º 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;
            }
        }