Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <SavedEmployerOpportunityViewModel> GetSavedEmployerOpportunitiesAsync(string username) { var employerOpportunities = await _opportunityRepository .GetManyAsync(o => o.OpportunityItem.Any(oi => oi.IsSaved && !oi.IsCompleted) && o.CreatedBy == username) .ProjectTo <EmployerOpportunityViewModel>(_mapper.ConfigurationProvider) .ToListAsync(); var viewModel = new SavedEmployerOpportunityViewModel { EmployerOpportunities = employerOpportunities }; return(viewModel); }