public ActionResult MoveToCatalog(int id)
        {
            var @event = new MoveInCatalogEvent(id);
            var result = _service.Update(@event);

            return(RedirectToAction("Index", "Product"));
        }
Exemplo n.º 2
0
        public EventResult Update(MoveInCatalogEvent @event)
        {
            var result = _factory.GetHandler <MoveInCatalogEvent>().Apply(@event, new EventOptions {
                Store = true
            });

            if (result.Success)
            {
                _notificationService.Create(Common.Core.Notifications.PRODUCT_MOVED_TO_CATALOG);
            }

            return(result);
        }