예제 #1
0
 public void ProcessAction(HardwareCreatedEvent eventObject)
 {
     this.AppendInfoLog(string.Format("Matériel id:'{0}' ajouté", eventObject.HardwareId));
 }
예제 #2
0
        public void ProcessAction(HardwareCreatedEvent eventObject)
        {
            if (CheckIfCurrentCatalog(eventObject)) return;

            var catalog = this.repository.FindById(eventObject.CatalogId);
            var hardware = catalog.Hardwares.Where(x => x.Id == eventObject.HardwareId).FirstOrDefault();

            var result = Map(eventObject.CatalogId, hardware);

            this.catalogView.AddHardware(result);
        }