Exemple #1
0
        public async Task <IActionResult> Index()
        {
            var rslt = _genelParaWebService.Get <DovizKuru.Rootobject>("doviz.json");

            var asd = _httpRequestHelper.Send <Car>("cars/add", new Car
            {
                BrandId     = 1,
                CarId       = 2,
                CarName     = "BMW",
                ColorId     = 1,
                DailyPrice  = 100,
                Description = "BMW",
                ModelYear   = 2010
            });

            var result = _apiService.Post <ViewDataResult <Car> >("cars/add", new Car
            {
                BrandId     = 1,
                CarId       = 2,
                CarName     = "BMW",
                ColorId     = 1,
                DailyPrice  = 100,
                Description = "BMW",
                ModelYear   = 2010
            });



            return(View(await _httpRequestHelper.Get <List <Brand> >("brands/getbrands")));
        }