public async Task<JsonResult> FilmsData() { StarWarsApi<Film> apiResult = new StarWarsApi<Film>(); return Json(await apiResult.RetrieveItemList("films"), new Newtonsoft.Json.JsonSerializerSettings() { ContractResolver = new DefaultContractResolver() } ); }
public async Task<IActionResult> FilmListing(int filmId) { StarWarsApi<Film> apiResult = new StarWarsApi<Film>(); var model = await apiResult.RetrieveItemList("films"); return View(model); }