protected TResponse _Get <TResponse>(WebApiType type, int?id)
        {
            _Init(type);
            var query = $"/{id}";
            var resp  = _HttpHandler.GetJson <TResponse>(query);

            return(resp);
        }
示例#2
0
        // GET: Planes
        public IActionResult Index()
        {
            _InitPlaneHttpUrl();
            var resp = _HttpHandler.GetJson <List <Plane> >(string.Empty);

            return(View(resp));
        }