示例#1
0
        public Subjects GetSubjectById(string id = "", string status = "")
        {
            Subjects sub = CBO.FillObject <Subjects>(DataProvider.Instance.ExecuteReader("sp_getSubjectById", id, status));

            return(sub);
        }
示例#2
0
        public bool Update(Subjects sub)
        {
            int result = DataProvider.Instance.ExecuteNonQuery("sp_updateSubjects", sub.ID, sub.Name, sub.Description, sub.Status);

            return(result > 0);
        }