예제 #1
0
        public TypeVideo Update(UpdateTypeVideoCommand command)
        {
            var typeVideo = _repository.GetById(command.IdTypeVideo);

            typeVideo.Update(command);
            _repository.Update(typeVideo);

            if (Commit())
            {
                return(typeVideo);
            }

            return(null);
        }