public void Update(short IdKhoaphong, string MaKhoaphong, string TenKhoaphong, short?MaCha, short SttHthi, string MotaThem, decimal?DonGia, decimal?TamUng, string NoitruNgoaitru, byte?LaKhoacapcuu, string KieuKhoaphong, byte?PhongChucnang, string MaDonvitinh, string NguoiTao, DateTime?NgayTao, string NguoiSua, DateTime?NgaySua, string ChiDan, string MaPhongStt) { DmucKhoaphong item = new DmucKhoaphong(); item.MarkOld(); item.IsLoaded = true; item.IdKhoaphong = IdKhoaphong; item.MaKhoaphong = MaKhoaphong; item.TenKhoaphong = TenKhoaphong; item.MaCha = MaCha; item.SttHthi = SttHthi; item.MotaThem = MotaThem; item.DonGia = DonGia; item.TamUng = TamUng; item.NoitruNgoaitru = NoitruNgoaitru; item.LaKhoacapcuu = LaKhoacapcuu; item.KieuKhoaphong = KieuKhoaphong; item.PhongChucnang = PhongChucnang; item.MaDonvitinh = MaDonvitinh; item.NguoiTao = NguoiTao; item.NgayTao = NgayTao; item.NguoiSua = NguoiSua; item.NgaySua = NgaySua; item.ChiDan = ChiDan; item.MaPhongStt = MaPhongStt; item.Save(UserName); }
public bool Destroy(object IdKhoaphong) { return(DmucKhoaphong.Destroy(IdKhoaphong) == 1); }
public bool Delete(object IdKhoaphong) { return(DmucKhoaphong.Delete(IdKhoaphong) == 1); }