Exemplo n.º 1
0
        public PendingGame Update(PendingGame model)
        {
            var newPendingGame = context.DbPendingGames.Attach(model);

            newPendingGame.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(model);
        }
Exemplo n.º 2
0
 public PendingGame AddGame(PendingGame model)
 {
     context.DbPendingGames.Add(model);
     context.SaveChanges();
     return(model);
 }