private void go_addIngrediente_Click(object sender, EventArgs e) { var ingrediente = new AddIngrediente(); ingrediente.ShowDialog(); UpdateForm(); }
public void Add(AddIngrediente vmodel) { Domain.Ingrediente.Entity.Ingrediente model = vmodel; if (!model.IsValid()) { NotifyValidationError(model.ValidationResult); return; } _ingredienteRepository.Add(model); Commit(); }