public static bool Update(DiaDiemDL dd) { object rs = DataProvider.Instance.ExecuteNonQuery("DiaDiem_Update", dd.ID, dd.TenDD, dd.QuocGia); int affected = MyConvert.ToInt32(rs); if (affected > 0) { return(true); } return(false); }
public static bool Add(DiaDiemDL dd) { object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@ID", "DiaDiem_Add", dd.ID, dd.TenDD, dd.QuocGia); int affected = MyConvert.ToInt32(rs); if (affected > 0) { return(true); } return(false); }