public IHttpActionResult PutLecture(int id, UpdateLectureDTO lecture) { var updateResult = LectureService.UpdateLecture(lecture); if (updateResult.Updated) { return(Ok(updateResult)); } return(StatusCode(HttpStatusCode.NoContent)); }
public ActionResult Edit(Lecture lecture, int number = 0) { lectureService.UpdateLecture(lecture); return(RedirectToAction("LectureList", "Lecture")); }