public void SaveAdditionToDatabase(int integerOne, int integerTwo, int result) { Addition add = new Addition(); add.IntegerOne = integerOne; add.IntegerTwo = integerTwo; add.Result = result; _context.Additions.Add(add); _context.SaveChanges(); }
public void Save() { _context.SaveChanges(); }