示例#1
0
        internal ObservableCollection <AlumnModel> GetByAlumnsEducation(Education selectedEducation, Services services)
        {
            ObservableCollection <AlumnModel> x = new ObservableCollection <AlumnModel>();

            foreach (var item in services.GetCollectionServices.GetAlumnsByEducation(selectedEducation))
            {
                AlumnModel alumns = mapper.Map <Alumn, AlumnModel>(item);
                x.Add(alumns);
            }
            return(x);
        }
示例#2
0
        internal ObservableCollection <AlumnModel> GetAllAlumns(Services services)
        {
            ObservableCollection <AlumnModel> x = new ObservableCollection <AlumnModel>();

            foreach (var item in services.GetCollectionServices.GetAllAlumns())
            {
                AlumnModel alumns = mapper.Map <Alumn, AlumnModel>(item);
                x.Add(alumns);
            }
            return(x);
        }
示例#3
0
        internal ObservableCollection <AlumnModel> GetAttendedAlumns(Services services)
        {
            ObservableCollection <AlumnModel> x = new ObservableCollection <AlumnModel>();
            Event @event = services.GetServices.GetEvent(EventId);

            foreach (var item in services.GetCollectionServices.GetAttendedAlumn(@event))
            {
                AlumnModel z = mapper.Map <Alumn, AlumnModel>(item);
                x.Add(z);
            }
            return(x);
        }
示例#4
0
        internal AlumnModel GetLoggedInAlumn(string idInput, string password, Services services)
        {
            Alumn a = services.LogInServices.LogInAlumn(idInput, services.LogInServices.Encrypt(password));

            if (a != null)
            {
                AlumnModel x = mapper.Map <Alumn, AlumnModel>(a);
                return(x);
            }
            else
            {
                return(null);
            }
        }