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); }
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); }
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); }
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); } }