示例#1
0
        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);
        }
示例#2
0
 public bool Destroy(object IdBuong)
 {
     return(NoitruDmucBuong.Destroy(IdBuong) == 1);
 }
示例#3
0
 public bool Delete(object IdBuong)
 {
     return(NoitruDmucBuong.Delete(IdBuong) == 1);
 }