public static Player LoginPlayer(string username, string password) { PlayerRepo repo = new PlayerRepo(new PlayerSQLContext()); Player player = new Player(); player = repo.Login(username, password); if (player != null) { player.MonsterManual = repo.FillMonstermanual(player.Id); } return(player); }
public void FillMonstermanual() { PlayerRepo repo = new PlayerRepo(new PlayerSQLContext()); this.MonsterManual = repo.FillMonstermanual(this.Id); }