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

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

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

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