public BLModel.Paged.LogSessionDetail getAllLogSession(int skip, int take) { var _logsession = (from logsession in _logSessionRepository.GetAll() join user in _UserRepository.GetAll() on logsession.UserId equals user.UID join myeducation in _MyEducationRepository.GetAll() on logsession.MEID equals myeducation.MEID join educaton in _EducationRepository.GetAll() on myeducation.EducationID equals educaton.EducationID select new { logsession.LogSessionID, logsession.SessionId, logsession.UserId, logsession.PageUrl, logsession.MEID, logsession.LogCreatedDate, logsession.Browser, educaton.CourseName, user.FirstName, user.LastName, user.EmailID }).Skip(skip).Take(take).ToList(); return(new BLModel.Paged.LogSessionDetail { LogSessionDetails = _logsession.Select(log => new DLModel.LogSessionDetail().InjectFrom(log)).Cast <DLModel.LogSessionDetail>(), TotalCount = _logSessionRepository.GetDbSet().Count() }); }
public void RefreshEducationList() { var oldInList = new List <IEducationEntity>(InEducations); var oldOutList = new List <IEducationEntity>(OutEducations); var newList = edRepos.GetAll(); OutEducations.Clear(); InEducations.Clear(); foreach (var item in newList) { if (oldInList.Any(T => T.ID == item.ID)) { InEducations.Add(item); } else { OutEducations.Add(item); } } }
public IEnumerable <EmployeeEducationDetail> GetAll(EmployeeEducationDetail obj, string[] param, string spName) { return(_IEducationRepository.GetAll(obj, param, spName)); }
public List <EducationViewModel> GetEducations() { return(_repository.GetAll().ProjectTo <EducationViewModel>().ToList()); }
private void LoadEducationItems() { Institutions = new ObservableCollection <IEducationEntity>(repos.GetAll()); }
/************************* ************************** ***** PUBLIC METHODS ***** ************************** *************************/ public ResumeCreatorViewModel( IResumeCreationService rcs, ILoggingService ls, IGeneralInfoRepository giRepository, IExperienceRepository experienceRepository, IExpertiseRepository expertiseRepository, IEducationRepository educationRepository, IPublicationsRepository publicationsRepository, IKernel kernel) { try { this.rcs = rcs; this.giRepos = giRepository; this.experienceRepos = experienceRepository; this.expertiseRepos = expertiseRepository; this.edRepos = educationRepository; this.pubRepos = publicationsRepository; this.ls = ls; this._kernel = kernel; SetUpRelayCommands(); var gie = giRepos.Get(Guid.Empty); FullName = gie.FullName; Email = gie.Email; Phone = gie.Phone; AddLine1 = gie.Add1; AddLine2 = gie.Add2; InExpertises = new ObservableCollection <IExpertiseEntity>(); OutExpertises = AllExpertises = new ObservableCollection <IExpertiseEntity>(expertiseRepos.GetAll()); RefreshJobs(); InEducations = new ObservableCollection <IEducationEntity>(); OutEducations = AllEducations = new ObservableCollection <IEducationEntity>(edRepos.GetAll()); InPublications = new ObservableCollection <IPublicationEntity>(); OutPublications = AllPublications = new ObservableCollection <IPublicationEntity>(pubRepos.GetAll()); UpdateDocumentPreview(); } catch (Exception e) { ls.Log(e, "Exception"); } }
public IEnumerable <BLModel.Education> getAllEducation() { return(_eduRepository.GetAll().Select(edu => new BLModel.Education().InjectFrom(edu)).Cast <BLModel.Education>().OrderBy(education => education.EducationID).ToList()); }
public ICollection <Education> GetAll() { return(rep.GetAll()); }