Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public void SetDetails(clsBreed prBreed)
 {
     _Breed = prBreed;
     UpdateForm();
     Show();
 }