public ActionResult DeleteConfirmed(short id)
        {
            tbl_ServiceUnit tbl_ServiceUnit = db.tbl_ServiceUnit.Find(id);

            db.tbl_ServiceUnit.Remove(tbl_ServiceUnit);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,name,priceVND,priceUSD,note,minPrice,maxPrice,picture,status,createdTime,updatedTime,createdBy,updatedBy")] tbl_ServiceUnit tbl_ServiceUnit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_ServiceUnit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_ServiceUnit));
 }
        // GET: tbl_ServiceUnit/Edit/5
        public ActionResult Edit(short?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_ServiceUnit tbl_ServiceUnit = db.tbl_ServiceUnit.Find(id);

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