示例#1
0
        private void go_addIngrediente_Click(object sender, EventArgs e)
        {
            var ingrediente = new AddIngrediente();

            ingrediente.ShowDialog();
            UpdateForm();
        }
示例#2
0
        public void Add(AddIngrediente vmodel)
        {
            Domain.Ingrediente.Entity.Ingrediente model = vmodel;

            if (!model.IsValid())
            {
                NotifyValidationError(model.ValidationResult);
                return;
            }

            _ingredienteRepository.Add(model);

            Commit();
        }