public void ProcessAction(SupplyCreatedEvent eventObject)
 {
     this.AppendInfoLog(string.Format("Fourniture id:'{0}' ajoutée", eventObject.SupplyId));
 }
        public void ProcessAction(SupplyCreatedEvent eventObject)
        {
            if (CheckIfCurrentCatalog(eventObject)) return;

            var catalog = this.repository.FindById(eventObject.CatalogId);
            var supply = catalog.Supplies.Where(x => x.Id == eventObject.SupplyId).FirstOrDefault();

            Mapper.CreateMap<Supply, CatalogSupplyViewModel>();

            var result = Mapper.Map<Supply, CatalogSupplyViewModel>(supply);
            result.CatalogId = eventObject.CatalogId;

            this.catalogView.AddSupply(result);
        }