public ActionResult DeleteConfirmed(int id)
        {
            annual_p annual_p = db.annuals.Find(id);

            db.annuals.Remove(annual_p);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Rollno,Feetype,Fees,Latefee,Feerec,Dor")] annual_p annual_p)
 {
     if (ModelState.IsValid)
     {
         db.Entry(annual_p).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(annual_p));
 }
        public ActionResult Create([Bind(Include = "Id,Rollno,Feetype,Fees,Latefee,Feerec,Dor")] annual_p annual_p)
        {
            if (ModelState.IsValid)
            {
                db.annuals.Add(annual_p);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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