Ejemplo n.º 1
0
 public async Task Add(Game game)
 {
     game.CreatedDateTime   = DateTime.Now;
     game.CreatedByUsername = "******";
     await _context.AddAsync(game);
 }
Ejemplo n.º 2
0
 public async Task Add(Ship ship)
 {
     ship.CreatedDateTime   = DateTime.Now;
     ship.CreatedByUsername = "******";
     await _context.AddAsync(ship);
 }