public void Configuration(IAppBuilder app) { ConfigureAuth(app); app.MapSignalR(); var context = new StarWars3Context(); context.Database.Initialize(true); }
private bool IsExistingPlayer(int?id) { var context = new StarWars3Context(); return(context.Players.Any(p => p.Id == id)); }