public RestaurantUpdate(int restaurantId)
        {
            InitializeComponent();
            resId = restaurantId;
            var proxyRestaurant = new RestaurantServiceClient();

            ModelLibrary.Restaurant res = proxyRestaurant.GetRestaurant(resId);
            comboBoxCategory.ItemsSource   = proxyRestaurant.GetAllRestaurantCategories();
            comboBoxCategory.SelectedIndex = 0;
            if (res != null)
            {
                textBoxName.Text               = res.Name;
                textBoxAddress.Text            = res.Address;
                textBoxZipCode.Text            = res.ZipCode;
                textBoxPhone.Text              = res.PhoneNo;
                textBoxEmail.Text              = res.Email;
                textBoxcategory.Text           = res.Category.ToString();
                checkBoxDiscontinued.IsChecked = res.Discontinued;
                checkBoxVerified.IsChecked     = res.Verified;
            }
            else
            {
                textBoxName.Text               = "";
                textBoxAddress.Text            = "";
                textBoxZipCode.Text            = "";
                textBoxPhone.Text              = "";
                textBoxEmail.Text              = "";
                textBoxcategory.Text           = "";
                checkBoxDiscontinued.IsChecked = false;
                checkBoxVerified.IsChecked     = false;
            }
        }