示例#1
0
        public ActionResult Update(VideoDto videoDto)
        {
            Video video = Video.Create(videoDto);

            VideoManager.Save(video);

            VideoDto savedVideoDto = VideoDto.Create(video);

            return new JsonDataContractActionResult(savedVideoDto);
        }
        public ActionResult Update(VideoDto videoDto)
        {
            Video video = Video.Create(videoDto);

            VideoManager.Save(video);

            VideoDto savedVideoDto = VideoDto.Create(video);

            return new JsonServiceStackResult(savedVideoDto);
        }