Beispiel #1
0
        public IEnumerable <FoundOrLostViewModel> GetAllLostOrFoundObjects()
        {
            IQueryBusiness <vw_GetAllLostOrFoundObjects> queryLostOrFoundObjects = DependencyResolution.Instance.GetInstance <IQueryBusiness <vw_GetAllLostOrFoundObjects> >();
            var lostOrFoundObjectList = queryLostOrFoundObjects.List().ToList();
            IEnumerable <FoundOrLostViewModel> lostOrFoundViewModelList = lostOrFoundObjectList.Select(i => i.Convert <vw_GetAllLostOrFoundObjects, FoundOrLostViewModel>());

            return(lostOrFoundViewModelList);
        }
Beispiel #2
0
 public ManagementController(IQueryBusiness queryBusiness, IIndexService indexService, ILuceneSearcherContextFactory luceneSearcherContextFactory)
 {
     _queryBusiness = queryBusiness;
     _indexService  = indexService;
     _luceneSearcherContextFactory = luceneSearcherContextFactory;
 }
 public SearchIndexBusiness(IQueryBusiness queryBusiness, IIndexService indexService)
 {
     _queryBusiness = queryBusiness;
     _indexService  = indexService;
 }
Beispiel #4
0
 public BusinessController(IQueryBusiness queryBusiness, IQueryGeocode queryGeocode)
 {
     this.queryBusiness = queryBusiness;
     this.queryGeocode  = queryGeocode;
 }