示例#1
0
        public ActionResult <PostcodeLookup.PostcodeData> Get(string postcode)
        {
            var data = PostcodeLookup.GetByPostcode(postcode);

            if (data != null)
            {
                return(data);
            }

            return(NotFound(postcode));
        }
示例#2
0
        public ActionResult <PostcodeLookup.PostcodeData> Get()
        {
            var data = PostcodeLookup.GetByPostcode("Test");

            return(data);
        }