Ejemplo n.º 1
0
 public IEnumerable <UserDTO> getPCMembersForConference(int conferenceId)
 {
     using (var uow = new UnitOfWork())
     {
         var            conference     = uow.getRepository <Conference>().get(conferenceId);
         List <UserDTO> users          = new List <UserDTO>();
         var            usersConverter = new UserConverterService();
         var            usersRepo      = uow.getRepository <User>();
         foreach (var u in conference.Participations)
         {
             if (u.Role == UserRole.Chair || u.Role == UserRole.CoChair || u.Role == UserRole.Reviewer)
             {
                 users.Add(usersConverter.convertToDTOModel(usersRepo.get(u.UserId)));
             }
         }
         return(users);
     }
 }
Ejemplo n.º 2
0
 public UserConferenceService()
 {
     converter               = new ConferenceConverterService();
     userConverter           = new UserConverterService();
     userCOnferenceConverter = new User_ConferenceConverterService();
 }
Ejemplo n.º 3
0
 public UserService()
 {
     _ecrypt   = new Ecryption();
     converter = new UserConverterService();
 }