public ActionResult DeleteConfirmed(int id)
        {
            SchoolDeposit schoolDeposit = db.SchoolDeposits.Find(id);

            db.SchoolDeposits.Remove(schoolDeposit);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "SchoolDepositId,Amount")] SchoolDeposit schoolDeposit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(schoolDeposit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(schoolDeposit));
 }
        public ActionResult Create([Bind(Include = "SchoolDepositId,Amount")] SchoolDeposit schoolDeposit)
        {
            if (ModelState.IsValid)
            {
                db.SchoolDeposits.Add(schoolDeposit);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(schoolDeposit));
        }
        // GET: SchoolDeposits/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SchoolDeposit schoolDeposit = db.SchoolDeposits.Find(id);

            if (schoolDeposit == null)
            {
                return(HttpNotFound());
            }
            return(View(schoolDeposit));
        }