public ActionResult DeleteConfirmed(int id) { LatePayment latePayment = db.LatePayment.Find(id); db.LatePayment.Remove(latePayment); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
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)); }
// 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)); }
} // IsLate public void Fill(LatePayment lp, int nThreshold) { lp.Init(LoanID, ScheduleID, ScheduleDate, TransactionID, TransactionTime, nThreshold); } // Fill