Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }