public ActionResult GetByHistory(string location) { var locations = _service.GetHistoriesByLocation(location); var model = new LocationHistoryModel(); model.AddRange(locations); model.Location = location; return(View(model)); }
private async void Button_Clicked(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); var fileToRead = await Plugin.FilePicker.CrossFilePicker.Current.PickFile(); var result = Encoding.UTF8.GetString(fileToRead.DataArray, 0, fileToRead.DataArray.Length); if (result != null) { LocationHistory = JsonConvert.DeserializeObject <LocationHistoryModel>(result); } }