Exemple #1
0
 //dobija se aktivnost sa definisanim input i output dok
 public void SaveActivity(ActivityDTO dto)
 {
     Activity = Mapper.Map <Activity>(dto);
     Activity.InputDocuments.Where(i => i.InputOperation == InputOperations.Receive)
     .ToList().ForEach(i => _bus.AddConsumer(i));
     Activity.OutputDocuments.Where(i => i.OutputOperation == OutputOperations.Create)
     .ToList().ForEach(i =>
     {
         _bus.AddRequestConsumer(i);
         _bus.AddUpdateConsumer(i);
     });
     _bus.StartBus();
 }