public ActionResult PropertyListing() { //Get All properties from db and pass to view. //PropertiesModel properties = new PropertiesModel(); //var propertyList = properties.Properties.ToList(); ApiModel api = new ApiModel(); List <Establishment> establishments = api.ListEstablishments(); ViewBag.Current = "propertylisting"; ViewBag.Properties = establishments; return(View()); }