public Pn Update(Pn item2) { Pn item = new Pn(); item.MarkOld(); item.IsLoaded = true; item.MaPN = item2.MaPN; item.NgayNhap = item2.NgayNhap; item.MaNCC = item2.MaNCC; item.MaNV = item2.MaNV; item.Status = item2.Status; item.Save(UserName); return(item2); }
public bool Destroy(object MaPN) { return(Pn.Destroy(MaPN) == 1); }
public Pn Insert(Pn item) { item.Save(UserName); return(item); }
public bool Delete(object MaPN) { return(Pn.Delete(MaPN) == 1); }