public DataTable DeleteCourses(Courses_Info courses) { string sql = @"Udemi_Courses_DeleteCourses"; var dt = ExecuteDataTable(sql, CommandType.StoredProcedure, new SqlParameter("@Id", courses.Id) ); return(dt); }
public HttpResult AddCoursesToWatchList([FromBody] Courses_Info courses) { try { return(new HttpResult { }); } catch (Exception ex) { return(new HttpResult { }); } }
public HttpResult RemoveCoursesStudent([FromBody] Courses_Info courses) { try { return(new HttpResult { }); } catch (Exception ex) { return(new HttpResult { }); } }
public HttpResult DeleteCourses([FromBody] Courses_Info courses) { try { return(new HttpResult { }); } catch (Exception ex) { return(new HttpResult { }); } }
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); }