Example #1
0
        public IHttpActionResult GetPropertiesByDataSet([FromUri] UprdDataSet dataset)
        {
            var list = WatchlistService.GetPropertiesByDataSet(dataset);

            return(Json(list));
        }
Example #2
0
        public IHttpActionResult GetTotalCountLocationsFromUPRD([FromUri] string PipelineDuns, [FromUri] UprdDataSet datasetType, [FromUri] string Keyword)
        {
            var list = WatchlistService.GetTotalLocationsFromUPRDs(PipelineDuns, Keyword);

            return(Json(list));
        }
Example #3
0
 public IQueryable <WatchListMailAlertUPRDMapping> GetDataForUPRDMapping(string UserId, int watchListId, UprdDataSet dataSet)
 {
     return(DbContext.WatchListMailAlertUPRDMappings.Where(a => a.UserId == UserId &&
                                                           a.WatchListId == watchListId &&
                                                           a.DataSetId == (int)dataSet
                                                           ));
 }
Example #4
0
        public IHttpActionResult GetLocationsFromUPRDsUsingPaging([FromUri] string PipelineDuns, [FromUri] UprdDataSet datasetType, [FromUri] string Keyword, [FromUri] int PageNo, [FromUri] int PageSize, [FromUri] string order, [FromUri] string orderDir)
        {
            var list = WatchlistService.GetLocationsFromUPRDsUsingPaging(PipelineDuns, Keyword, PageNo, PageSize, order, orderDir);

            return(Json(list));
        }
Example #5
0
 public IQueryable <Watchlist> GetAllBydataSet(UprdDataSet dataset)
 {
     return(DbContext.Watchlists.Where(a => (int)dataset == a.DataSetId));
 }