public void Update(int MaHD, DateTime?NgayDat, int?MaKH, int?MaNV, string Status) { Hd item = new Hd(); item.MarkOld(); item.IsLoaded = true; item.MaHD = MaHD; item.NgayDat = NgayDat; item.MaKH = MaKH; item.MaNV = MaNV; item.Status = Status; item.Save(UserName); }
public Hd Update(Hd item2) { Hd item = new Hd(); item.MarkOld(); item.IsLoaded = true; item.MaHD = item2.MaHD; item.NgayDat = item2.NgayDat; item.MaKH = item2.MaKH; item.MaNV = item2.MaNV; item.Status = item2.Status; item.Save(UserName); return(item); }