Beispiel #1
0
        public CourtDecision getCourtDecision(string DecisionId)
        {
            //if (CitationNetwork.Citations == null || CitationNetwork.Citations.Count() == 0)
            //    CitationNetwork.LoadCitationNetwork();

            return(OpenLegalDb.getCourtDecision(DecisionId));
        }
Beispiel #2
0
        public CourtDecision GetDecision(string DecisionId)
        {
            //int count = CitationNetwork.Citations.Where(ct =>ct.from_type != "Law" && ct.to_type != "Law").Count();

            //return CitationNetwork.Citations.Where(c => c.to_id==id.ToString());
            return(OpenLegalDb.getCourtDecision(DecisionId));
        }
Beispiel #3
0
        public IEnumerable <CourtDecision> Search(string text)
        {
            //int count = CitationNetwork.Citations.Where(ct =>ct.from_type != "Law" && ct.to_type != "Law").Count();

            //return CitationNetwork.Citations.Where(c => c.to_id==id.ToString());
            return(OpenLegalDb.searchDecisions(text));
        }
Beispiel #4
0
        public IEnumerable <CourtDecision> searchDecisions(string searchQuery)
        {
            //if (CitationNetwork.Citations == null || CitationNetwork.Citations.Count() == 0)
            //    CitationNetwork.LoadCitationNetwork();
            //82520

            //return CitationNetwork.Citations.Where(c => c.to_id==id.ToString());
            return(new List <CourtDecision> {
                OpenLegalDb.getCourtDecision("82520")
            });
        }
        public HttpResponseMessage searchDecisions(string searchQuery)
        {
            //if (CitationNetwork.Citations == null || CitationNetwork.Citations.Count() == 0)
            //    CitationNetwork.LoadCitationNetwork();
            //82520

            //return CitationNetwork.Citations.Where(c => c.to_id==id.ToString());
            var response = Request.CreateResponse(HttpStatusCode.OK, OpenLegalDb.searchDecisions(searchQuery));

            response.Headers.Add("Access-Control-Allow-Origin", "*");
            return(response);
        }
 public string updateDatabase()
 {
     OpenLegalDb.reloadOpenLegalData();
     return("ok");
 }