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

            db.LatePayment.Remove(latePayment);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,Increment,TypeIncrement,DaysForIncrement,LateDayPayment,status")] LatePayment latePayment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(latePayment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(latePayment));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "Id,Increment,TypeIncrement,DaysForIncrement,LateDayPayment,status")] LatePayment latePayment)
        {
            if (ModelState.IsValid)
            {
                db.LatePayment.Add(latePayment);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(latePayment));
        }
Пример #4
0
        // GET: LatePayments/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            LatePayment latePayment = db.LatePayment.Find(id);

            if (latePayment == null)
            {
                return(HttpNotFound());
            }
            return(View(latePayment));
        }
Пример #5
0
        }         // IsLate

        public void Fill(LatePayment lp, int nThreshold)
        {
            lp.Init(LoanID, ScheduleID, ScheduleDate, TransactionID, TransactionTime, nThreshold);
        } // Fill