public void Insert(string TenLoai, double?Uudai, DateTime?Ngaycapnhap, int?MaNVchinhsua) { LoaiThanhVien item = new LoaiThanhVien(); item.TenLoai = TenLoai; item.Uudai = Uudai; item.Ngaycapnhap = Ngaycapnhap; item.MaNVchinhsua = MaNVchinhsua; item.Save(UserName); }
public void Update(int MaLoaitv, string TenLoai, double?Uudai, DateTime?Ngaycapnhap, int?MaNVchinhsua) { LoaiThanhVien item = new LoaiThanhVien(); item.MarkOld(); item.IsLoaded = true; item.MaLoaitv = MaLoaitv; item.TenLoai = TenLoai; item.Uudai = Uudai; item.Ngaycapnhap = Ngaycapnhap; item.MaNVchinhsua = MaNVchinhsua; item.Save(UserName); }
public LoaiThanhVien Update(LoaiThanhVien item2) { LoaiThanhVien item = new LoaiThanhVien(); item.MarkOld(); item.IsLoaded = true; item.MaLoaitv = item2.MaLoaitv; item.TenLoai = item2.TenLoai; item.Uudai = item2.Uudai; item.Ngaycapnhap = item2.Ngaycapnhap; item.MaNVchinhsua = item2.MaNVchinhsua; item.Save(UserName); return(item); }
public bool Destroy(object MaLoaitv) { return(LoaiThanhVien.Destroy(MaLoaitv) == 1); }
public bool Delete(object MaLoaitv) { return(LoaiThanhVien.Delete(MaLoaitv) == 1); }
public LoaiThanhVien Insert(LoaiThanhVien item) { item.Save(UserName); return(item); }