public ActionResult DeleteConfirmed(int id)
        {
            Tbl_BooksSize tbl_BooksSize = db.Tbl_BooksSize.Find(id);

            db.Tbl_BooksSize.Remove(tbl_BooksSize);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,Name")] Tbl_BooksSize tbl_BooksSize)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_BooksSize).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_BooksSize));
 }
        public ActionResult Create([Bind(Include = "ID,Name")] Tbl_BooksSize tbl_BooksSize)
        {
            if (ModelState.IsValid)
            {
                db.Tbl_BooksSize.Add(tbl_BooksSize);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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