public async void Edit()
 {
     using (var svc = new RestaurantServiceClient())
     {
         try
         {
             await svc.EditRestaurantAsync(_restaurant.Id, RestaurantName, _restaurant.Version, AppData.User.Token);
         }
         catch (FaultException<ConcurrencyException> e)
         {
             MessageBox.Show("The restaurant has been modified by someone else, your changes has been reverted", "Concurrency error", MessageBoxButton.OK, MessageBoxImage.Warning);
         }
         TryClose(true);
     }
 }