Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 public EditProductViewModel(Product model)
     : base()
 {
     this.Product = model;
 }