public IActionResult Index([FromQuery] string date, [FromQuery] string time) { /* * these values would be from interface * the interface would be getting values * from the class requesting information from the api */ if (date != null && time != null) { ViewData["Message"] = RestCtr.DoBooking(); } ViewData["items"] = RestCtr.GetStyles().OfType <JObject> ().ToList(); return(View()); }