private void UpdateCategory(YandexMarketCategoryModel model)
        {
            var category = _yandexMarketCategoryService.GetById(model.Id);

            category.Name     = model.Name;
            category.Url      = model.Url;
            category.IsActive = model.IsActive;

            _yandexMarketCategoryService.Update(category);
        }
        public ActionResult UpdateCategory(YandexMarketCategoryModel model, GridCommand command)
        {
            var category = _yandexMarketCategoryService.GetById(model.Id);

            category.Name = model.Name;

            _yandexMarketCategoryService.Update(category);

            return(ListCategory(command));
        }