Exemple #1
0
        public ActionResult GetCategories()
        {
            var categories = HTTPHelpers.GetListMethod <List <CategoriesModel> >("http://localhost:37796/", "Categories/GetCategories", RestSharp.Method.GET);

            return(View(categories));
        }
        // GET: Products
        public ActionResult GetProducts()
        {
            var products = HTTPHelpers.GetListMethod <List <ProductsModel> >("http://localhost:37796/", "Products/GetProducts", RestSharp.Method.GET);

            return(View(products));
        }
        public ActionResult GetOrders()
        {
            var orders = HTTPHelpers.GetListMethod <List <OrdersModel> >("http://localhost:37786/", "Orders/GetOrders", RestSharp.Method.GET);

            return(View(orders));
        }