Пример #1
0
        public CategoryVideo Update(UpdateCategoryVideoCommand command)
        {
            var category = _repository.GetById(command.IdCategoryVideo);

            category.Update(command);
            _repository.Update(category);

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

            return(null);
        }
Пример #2
0
 public void Update(CategoryVideo model)
 {
     _categoryVideoRepository.Update(model);
 }