public void EditCourse(int id, string name, decimal cost) { CourseDAO course = new CourseDAO(); Course newCourse = new Course(name, cost, id); course.Update(id, newCourse); }
//[Authorize(Roles = "Tutor")] public IHttpActionResult Put(Course course) { if (CourseDAO.Update(course)) { return(Ok()); } return(BadRequest()); }
public static bool Update(Course item) { return(CourseDAO.Update(item)); }