///<summary> ///Update a Course ///</summary> ///<param name = "courseName">Name of course</param> ///<param name = "course">A Course object</param> ///<param name = "callback"></param> public static void PutCourse(string courseName, Course course, PostCourseCallback callback) { RestClient.Put($"{databaseURL}course/" + courseName + ".json", course).Then(response => { callback(); }); }
///<summary> ///Create a Course ///</summary> ///<param name = "course">A Course object</param> ///<param name = "courseName">Name of course</param> ///<param name = "callback"></param> public static void PostCourse(Course course, string courseName, PostCourseCallback callback) { RestClient.Put <Course>($"{databaseURL}course/{courseName}.json", course).Then(response => { callback(); }); }