コード例 #1
0
        public bool Update(Departments dep)
        {
            int result = DataProvider.Instance.ExecuteNonQuery("sp_updateDepartment", dep.ID, dep.Name, dep.Description, dep.Status);

            return(result > 0);
        }
コード例 #2
0
        public bool Add(Departments dep)
        {
            int result = DataProvider.Instance.ExecuteNonQuery("sp_addDepartment", dep.Name, dep.Description);

            return(result > 0);
        }