Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CRMS_600 crms_600 = db.CRMS_600.Find(id);

            db.CRMS_600.Remove(crms_600);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public ActionResult Create([Bind(Include = "ID,Code,Customer_ID,Customer_Account_Number,Customer_Name,Syndication_Reference_Number,Syndication_Name,Syndication_Total_Amount,Participating_Bank_COde,Inputter_ID,Inputter_Date_Stamp,Modifier_ID,Modifier_Date_Stamp,CRMS_Ref_Number,Loan_Ref_Number")] CRMS_600 crms_600)
        {
            if (ModelState.IsValid)
            {
                db.CRMS_600.Add(crms_600);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(crms_600));
        }
Beispiel #3
0
        // GET: /CRMS600/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CRMS_600 crms_600 = db.CRMS_600.Find(id);

            if (crms_600 == null)
            {
                return(HttpNotFound());
            }
            return(View(crms_600));
        }
Beispiel #4
0
 public ActionResult Edit([Bind(Include = "ID,Code,Customer_ID,Customer_Account_Number,Customer_Name,Syndication_Reference_Number,Syndication_Name,Syndication_Total_Amount,Participating_Bank_COde,Inputter_ID,Inputter_Date_Stamp,Modifier_ID,Modifier_Date_Stamp,CRMS_Ref_Number,Loan_Ref_Number")] CRMS_600 crms_600)
 {
     if (ModelState.IsValid)
     {
         db.Entry(crms_600).State = EntityState.Modified;
         db.SaveChanges();
         var saveData = new SaveData();
         if (crms_600.CRMS_Ref_Number != null)
         {
             saveData.SendMail(new string[] { crms_600.Inputter_ID + "@ecobank.com", "*****@*****.**", "*****@*****.**" }, "CRMS Reference Number updated " + crms_600.Modifier_ID, "CRMS Reference Number: " + crms_600.CRMS_Ref_Number + " \n has been generated for your CRMS 600 request");
         }
         return(RedirectToAction("Index"));
     }
     return(View(crms_600));
 }