public void Update(short IdBuong, string MaBuong, string TenBuong, short IdKhoanoitru, int DonGia, string MotaThem, byte?TrangThai, short?SttHthi) { NoitruDmucBuong item = new NoitruDmucBuong(); item.MarkOld(); item.IsLoaded = true; item.IdBuong = IdBuong; item.MaBuong = MaBuong; item.TenBuong = TenBuong; item.IdKhoanoitru = IdKhoanoitru; item.DonGia = DonGia; item.MotaThem = MotaThem; item.TrangThai = TrangThai; item.SttHthi = SttHthi; item.Save(UserName); }
public bool Destroy(object IdBuong) { return(NoitruDmucBuong.Destroy(IdBuong) == 1); }
public bool Delete(object IdBuong) { return(NoitruDmucBuong.Delete(IdBuong) == 1); }