示例#1
0
        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();
        }
示例#2
0
 public void Save()
 {
     _context.SaveChanges();
 }