Пример #1
0
        public static bool Update(GroupResources data)
        {
            int rs = DataProvider.Instance.ExecuteNonQuery("GroupResources_Update",
                                                           data.GroupResourcesID, data.GroupID, data.RecourceID);

            return(rs > 0);
        }
Пример #2
0
        public static int Add(GroupResources data)
        {
            object rs =
                DataProvider.Instance.ExecuteNonQueryWithOutput("@GroupResourcesID", "GroupResources_Insert",
                                                                data.GroupResourcesID, data.GroupID, data.RecourceID);
            int identity = rs != null?Convert.ToInt32(rs) : 0;

            return(identity);
        }