Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public bool Add(Departments dep)
        {
            int result = DataProvider.Instance.ExecuteNonQuery("sp_addDepartment", dep.Name, dep.Description);

            return(result > 0);
        }