예제 #1
0
 private void RetrieveInstances(EmployeeFacade facade)
 {
     if (CurrentUserContext.IsAdmin)
     {
         CurrentInstances = facade.RetrieveAllEmployee(new EmployeeConverter());
     }
     else if (CurrentUserContext.IsEmployee)
     {
         List <EmployeeDto> instances = new List <EmployeeDto>();
         EmployeeDto        instance  = facade.RetrieveOrNewEmployee(CurrentUserContext.User.MatchId, new EmployeeConverter());
         instances.Add(instance);
         CurrentInstances = instances;
     }
 }