Exemplo n.º 1
0
        public static bool Update(PerGroup data)
        {
            int rs = DataProvider.Instance.ExecuteNonQuery("PerGroup_Update",
                                                           data.GroupID, data.Name, data.Description);

            return(rs > 0);
        }
Exemplo n.º 2
0
        public static int Add(PerGroup data)
        {
            object rs =
                DataProvider.Instance.ExecuteNonQueryWithOutput("@GroupID", "PerGroup_Insert",
                                                                data.GroupID, data.Name, data.Description);
            int identity = rs != null?Convert.ToInt32(rs) : 0;

            return(identity);
        }