Beispiel #1
0
 private void RegisterEachUserOnEachEvent(UserServiceReference.User[] users, Event[] events)
 {
     for (int i = 0; i < events.Length; i++)
     {
         for (int j = 0; j < users.Length; j++)
         {
             var eventCompanyOwnerId = companyService.GetById(events[i].CompanyId).OwnerId;
             if (users[j].Id != eventCompanyOwnerId)
             {
                 eventService.RegisterUser(users[j].Id, events[i].Id);
             }
         }
     }
 }
Beispiel #2
0
 public CompanyEditViewModel(Guid id)
 {
     Company       = _companyService.GetById(id);
     UpdateCommand = new BaseCommand(updateExecute, updateCanExecute);
 }
Beispiel #3
0
 public CompanyViewModel(Guid companyId)
 {
     Company = _companyClient.GetById(companyId);
     Events  = _eventClient.GetCompanyEvents(companyId);
 }