private void button1_Click(object sender, EventArgs e)
 {
     /*TO DO: Permissions*/
     AddEditRestaurant c = new AddEditRestaurant();
     c.user = User;
     c.ShowDialog();
     if (c.DialogResult == DialogResult.OK)
     {
         Rebind();
     }
 }
        private void button2_Click(object sender, EventArgs e)
        {
            /*TO DO: Permissions*/
            if (dgvRestaurants.SelectedRows.Count > 0)
            {

                AddEditRestaurant c = new AddEditRestaurant();
                c.user = User;
                c.RestaurantID = restaurantsList[dgvRestaurants.SelectedRows[0].Index].Id;
                c.ShowDialog();
                if (c.DialogResult == DialogResult.OK)
                {
                    Rebind();
                }

            }
        }