Exemplo n.º 1
0
        public int Delete(Course course)
        {
            string sql = $"delete from Course where CourseId={course.CourseId}";

            return(SQLHelper.ExecuteNonQuery(sql));
        }
Exemplo n.º 2
0
        public int Update(Course course)
        {
            string sql = $"update Course set CourseContent='{course.CourseContent}' where CourseId={course.CourseId}";

            return(SQLHelper.ExecuteNonQuery(sql));
        }