public void Insert(string MaDvu, string TenDvu, string MaNhom, string TenNhom, string KieuDvu) { KetnoiHisDanhmucDvu item = new KetnoiHisDanhmucDvu(); item.MaDvu = MaDvu; item.TenDvu = TenDvu; item.MaNhom = MaNhom; item.TenNhom = TenNhom; item.KieuDvu = KieuDvu; item.Save(UserName); }
public void Update(int Id, string MaDvu, string TenDvu, string MaNhom, string TenNhom, string KieuDvu) { KetnoiHisDanhmucDvu item = new KetnoiHisDanhmucDvu(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.MaDvu = MaDvu; item.TenDvu = TenDvu; item.MaNhom = MaNhom; item.TenNhom = TenNhom; item.KieuDvu = KieuDvu; item.Save(UserName); }
public bool Destroy(object Id) { return(KetnoiHisDanhmucDvu.Destroy(Id) == 1); }
public bool Delete(object Id) { return(KetnoiHisDanhmucDvu.Delete(Id) == 1); }