public ActionResult Update(VideoCategoryDTO VideoCategoryDTO) { VideoCategory VideoCategory = _VideoCategoryService.GetByID(VideoCategoryDTO.ID); VideoCategory.Name = VideoCategoryDTO.Name; VideoCategory.Explanation = VideoCategoryDTO.Explanation; _VideoCategoryService.Update(VideoCategory); return(Redirect("/SysAdmin/VideoCategory/List")); }
public ActionResult Update(int id) { VideoCategory VideoCategory = _VideoCategoryService.GetByID(id); VideoCategoryDTO VideoCategoryDTO = new VideoCategoryDTO() { ID = VideoCategory.ID, Explanation = VideoCategory.Explanation, Name = VideoCategory.Name, }; return(View(VideoCategoryDTO)); }