Example #1
0
 public ActionResult ChinhSua(MaHangGiay mahanggiay)
 {
     data.MaHangGiays.Add(mahanggiay);
     data.Entry(mahanggiay).State = System.Data.Entity.EntityState.Modified;
     data.SaveChanges();
     return(RedirectToAction("Index"));
 }
Example #2
0
 public ActionResult ChinhSua(LoaiGiay loaigiay)
 {
     data.LoaiGiays.Add(loaigiay);
     data.Entry(loaigiay).State = System.Data.Entity.EntityState.Modified;
     data.SaveChanges();
     return(RedirectToAction("Index"));
 }