public static bool Guardar(Producto producto) { bool retorno = false; try { var db = new CotizacionDB(); db.Producto.Add(producto); db.SaveChanges(); retorno = true; } catch (Exception) { throw; } return(retorno); }
public static bool Guardar(Cliente cliente) { bool retorno = false; try { var db = new CotizacionDB(); db.Cliente.Add(cliente); db.SaveChanges(); retorno = true; } catch (Exception) { throw; } return(retorno); }