public async System.Threading.Tasks.Task AddAlcoholAsync() { var alcohol = new AlcoholDrink { Name = AddName, Price = AddPrice, Alcohol = AddAlcohol, Volume = AddVolume, Restaurant = username }; var response = await client.PostAsJsonAsync($"api/alcoholdrinks", alcohol); if (response.IsSuccessStatusCode) { Alcohols.Add(alcohol); } }