public int UpdateIngredient(Ingredient ingredient) { return(ExecuteNonQuery($"exec dbo.UpdateIngredient {ingredient.Id}, '{ingredient.Name}', {(int)ingredient.Type}")); }
public int NewIngredient(Ingredient ingredient) { return(ExecuteNonQuery($"exec dbo.NewIngredient '{ingredient.Name}', {(int)ingredient.Type}")); }