コード例 #1
0
        public IHttpActionResult PutLecture(int id, UpdateLectureDTO lecture)
        {
            var updateResult = LectureService.UpdateLecture(lecture);

            if (updateResult.Updated)
            {
                return(Ok(updateResult));
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
コード例 #2
0
 public ActionResult Edit(Lecture lecture, int number = 0)
 {
     lectureService.UpdateLecture(lecture);
     return(RedirectToAction("LectureList", "Lecture"));
 }