public void RegisterShop(string obj) { bool found = CurrentModel.MyBl.CheckShopExist(CurrentModel.MyShop.Id); if (found) { System.Windows.MessageBox.Show("Warning !! A Shop with same ID already exists !!", "Warning", MessageBoxButton.OK, MessageBoxImage.Exclamation); } else { if (Image != null) { CurrentModel.MyShop.images.Add(Image); } CurrentModel.MyShop.UpdateData(); CurrentModel.AddShop(); System.Windows.MessageBox.Show("Great !! You're now a Shop of our company !!", "Welcome", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }