Пример #1
0
        public DataTable DeleteCourses(Courses_Info courses)
        {
            string sql = @"Udemi_Courses_DeleteCourses";
            var    dt  = ExecuteDataTable(sql, CommandType.StoredProcedure,
                                          new SqlParameter("@Id", courses.Id)
                                          );

            return(dt);
        }
Пример #2
0
 public HttpResult AddCoursesToWatchList([FromBody] Courses_Info courses)
 {
     try
     {
         return(new HttpResult {
         });
     }
     catch (Exception ex)
     {
         return(new HttpResult {
         });
     }
 }
Пример #3
0
 public HttpResult RemoveCoursesStudent([FromBody] Courses_Info courses)
 {
     try
     {
         return(new HttpResult {
         });
     }
     catch (Exception ex)
     {
         return(new HttpResult {
         });
     }
 }
Пример #4
0
 public HttpResult DeleteCourses([FromBody] Courses_Info courses)
 {
     try
     {
         return(new HttpResult {
         });
     }
     catch (Exception ex)
     {
         return(new HttpResult {
         });
     }
 }
Пример #5
0
        public DataTable CreateCourses(Courses_Info courses)
        {
            string sql = @"Udemi_Courses_CreateCourses";
            var    dt  = ExecuteDataTable(sql, CommandType.StoredProcedure,
                                          new SqlParameter("@Title", courses.Title),
                                          new SqlParameter("@DescriptionShort", courses.DescriptionShort),
                                          new SqlParameter("@DescriptionLong", courses.DescriptionLong),
                                          new SqlParameter("@Thumbnail", courses.Thumbnail),
                                          new SqlParameter("@Outline", courses.Outline),
                                          new SqlParameter("@Teacher", courses.Teacher),
                                          new SqlParameter("@CategoryId", courses.CategoryId)
                                          );

            return(dt);
        }