protected override void Register() { bool result = false; try { result = this.Product.Save(); } catch(SqlException ex) { Logger.Error(ex); base.ShowAlert(); } base.ShowMessage(result); if (result) { this.Product = new Product(); } }
public EditProductViewModel(Product model) : base() { this.Product = model; }