internal async static Task <clsBreed> GetBreedAsync(string prBreedName) { using (HttpClient lcHttpClient = new HttpClient()) { string js = await lcHttpClient.GetStringAsync("http://localhost:60065/api/Data/GetBreed?BreedName=" + prBreedName); clsBreed b = JsonConvert.DeserializeObject <clsBreed>(js); return(b); } }
public void SetDetails(clsBreed prBreed) { _Breed = prBreed; UpdateForm(); Show(); }