Exemple #1
0
 private void RetrieveInstances(ActivityFacade facade)
 {
     if (CurrentUserContext.IsAdmin)
     {
         CurrentInstances = facade.RetrieveAllActivity(new ActivityConverter());
     }
     else if (CurrentUserContext.IsEmployee)
     {
         CurrentInstances = facade.RetrieveActivitysByEmployee(CurrentUserContext.User.MatchId, new ActivityConverter());
     }
 }