Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CRMS_200 crms_200 = db.CRMS_200.Find(id);

            db.CRMS_200.Remove(crms_200);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Create([Bind(Include = "ID,Code,Customer_ID,Customer_Account_Number,Customer_Name,Government_Mda_Tin,Legal_Status,Credit_Type,Credit_Purpose_By_Business_Lines,Credit_Purpose_By_Business_Lines_Subsector,Credit_Limit,Outstanding_Amount,Fee_Type1,Fee_Amount1,Fee_Type2,Fee_Amount2,Fee_Type3,Fee_Amount3,Fee_Type4,Fee_Amount4,Fee_Type5,Fee_Amount5,Fee_Type6,Fee_Amount6,Fee_Type7,Fee_Amount7,Fee_Type8,Fee_Amount8,Fee_Type9,Fee_Amount9,Fee_Type10,Fee_Amount10,Fee_Type11,Fee_Amount11,Fee_Type12,Fee_Amount12,Fee_Type13,Fee_Amount13,Fee_Type14,Fee_Amount14,Fee_Type15,Fee_Amount15,Fee_Type16,Fee_Amount16,Effective_Date,Tenor,Expiry_Date,Repayment_Agreement_Mode,Performance_Repayment_Status,Interest_Rate,Specialised_Loan,Specialised_Loan_Period,Collateral_Present1,Collateral_Secure1,Security_Type1,Collateral_Secure2,Security_Type2,Collateral_Secure3,Security_Type3,Collateral_Secure4,Security_Type4,Collateral_Secure5,Security_Type5,Collateral_Secure6,Security_Type6,Collateral_Secure7,Security_Type7,Collateral_Secure8,Security_Type8,Collateral_Secure9,Security_Type9,Collateral_Secure10,Security_Type10,Repayment_Source,Syndication,Syndication_Status,Syndication_Reference_Number,Inputter_ID,Inputter_Date_Stamp,Modifier_ID,Modifier_Date_Stamp,CRMS_Ref_Number,Loan_Ref_Number")] CRMS_200 crms_200)
        {
            if (ModelState.IsValid)
            {
                db.CRMS_200.Add(crms_200);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(crms_200));
        }
Пример #3
0
        // GET: /CRMS200/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CRMS_200 crms_200 = db.CRMS_200.Find(id);

            if (crms_200 == null)
            {
                return(HttpNotFound());
            }
            return(View(crms_200));
        }
Пример #4
0
 public ActionResult Edit([Bind(Include = "ID,Code,Customer_ID,Customer_Account_Number,Customer_Name,Government_Mda_Tin,Legal_Status,Credit_Type,Credit_Purpose_By_Business_Lines,Credit_Purpose_By_Business_Lines_Subsector,Credit_Limit,Outstanding_Amount,Fee_Type1,Fee_Amount1,Fee_Type2,Fee_Amount2,Fee_Type3,Fee_Amount3,Fee_Type4,Fee_Amount4,Fee_Type5,Fee_Amount5,Fee_Type6,Fee_Amount6,Fee_Type7,Fee_Amount7,Fee_Type8,Fee_Amount8,Fee_Type9,Fee_Amount9,Fee_Type10,Fee_Amount10,Fee_Type11,Fee_Amount11,Fee_Type12,Fee_Amount12,Fee_Type13,Fee_Amount13,Fee_Type14,Fee_Amount14,Fee_Type15,Fee_Amount15,Fee_Type16,Fee_Amount16,Effective_Date,Tenor,Expiry_Date,Repayment_Agreement_Mode,Performance_Repayment_Status,Interest_Rate,Specialised_Loan,Specialised_Loan_Period,Collateral_Present1,Collateral_Secure1,Security_Type1,Collateral_Secure2,Security_Type2,Collateral_Secure3,Security_Type3,Collateral_Secure4,Security_Type4,Collateral_Secure5,Security_Type5,Collateral_Secure6,Security_Type6,Collateral_Secure7,Security_Type7,Collateral_Secure8,Security_Type8,Collateral_Secure9,Security_Type9,Collateral_Secure10,Security_Type10,Repayment_Source,Syndication,Syndication_Status,Syndication_Reference_Number,Inputter_ID,Inputter_Date_Stamp,Modifier_ID,Modifier_Date_Stamp,CRMS_Ref_Number,Loan_Ref_Number")] CRMS_200 crms_200)
 {
     if (ModelState.IsValid)
     {
         db.Entry(crms_200).State = EntityState.Modified;
         db.SaveChanges();
         var saveData = new SaveData();
         if (crms_200.CRMS_Ref_Number != null)
         {
             saveData.SendMail(new string[] { crms_200.Inputter_ID + "@ecobank.com", "*****@*****.**", "*****@*****.**" }, "CRMS Reference Number updated " + crms_200.Modifier_ID, "CRMS Reference Number: " + crms_200.CRMS_Ref_Number + " \n has been generated for your CRMS 200 request");
         }
         return(RedirectToAction("Index"));
     }
     return(View(crms_200));
 }