Exemplo n.º 1
0
        public void Can_Get_Street_List()
        {
            string lpNumber = "LP-02039";

            var results = _landmarkService.GetLandmarkStreets(lpNumber);

            Assert.NotNull(results);
        }
Exemplo n.º 2
0
        public IActionResult GetStreets(string lpcNumber)
        {
            if (lpcNumber == null)
            {
                return(BadRequest());
            }

            var results      = _landmarkService.GetLandmarkStreets(lpcNumber.Trim());
            var totalRecords = results.Count;

            HttpContext.Response.Headers.Add("Access-Control-Expose-Headers", "X-InlineCount");
            HttpContext.Response.Headers.Add("X-InlineCount", totalRecords.ToString());

            return(Ok(results));
        }