correct foodplaceform

Changed txtbox from ToString to Text to access proper value
This commit is contained in:
Strati 2018-08-06 21:05:01 +02:00
parent a8130dd9d1
commit 9d580b5c36
1 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ namespace WpfWebClient
FoodPlace fp = new FoodPlace();
fp.Name = txtFoodPlaceName.ToString();
fp.Streetname = txtFoodPlaceStreetName.ToString();
fp.Streetnumber = txtFoodPlaceHouseNumber.ToString();
fp.Description = txtFoodPlaceDescription.ToString();
fp.Name = txtFoodPlaceName.Text;
fp.Streetname = txtFoodPlaceStreetName.Text;
fp.Streetnumber = txtFoodPlaceHouseNumber.Text;
fp.Description = txtFoodPlaceDescription.Text;
client.WriteFoodPlace(fp);