public bool Save(SaveTutorialSubtitleInputDto inputDTO)
        {
            TutorialSubtitle tt = this.tutorialSubtitleRepository.FindBy(x => x.ID == inputDTO.ID).FirstOrDefault();

            if (tt == null)
            {
                tt = new TutorialSubtitle();
            }

            tt.ParentID = inputDTO.ParentID;
            tt.Title    = inputDTO.Title;
            tt.Seq      = inputDTO.Seq;

            if (inputDTO.ID == 0)
            {
                this.tutorialSubtitleRepository.Add(tt);
            }
            else
            {
                this.tutorialSubtitleRepository.Update(tt);
            }

            this.unitOfWork.Commit();

            return(true);
        }
        public HttpResponseMessage SaveTutorialSubTitle(HttpRequestMessage request, SaveTutorialSubtitleInputDto inputDTO)
        {
            return(CreateHttpResponse(request, () =>
            {
                var result = this.tutorialsubtitleService.Save(inputDTO);

                if (result)
                {
                    response = request.CreateResponse(HttpStatusCode.OK, new { result });
                }
                else
                {
                    response = request.CreateErrorResponse(HttpStatusCode.NotFound, string.Empty);
                }

                return response;
            }));
        }