public void AddChiMucTinh(string provinceCode, string provinceName) { dtb_province x = new dtb_province(); x.province_code = provinceCode; x.province_name = provinceName; db.dtb_provinces.InsertOnSubmit(x); db.SubmitChanges(); }
public void DeleteChiMucTinh(string provideCode) { dtb_province f = db.dtb_provinces.Where(s => s.province_code == provideCode).Single(); if (f == null) { return; } db.dtb_provinces.DeleteOnSubmit(f); db.SubmitChanges(); }