Beispiel #1
0
        public bool AddPlayerToLeague(AddPlayerToLeagueModel model)
        {
            var command = @"
INSERT INTO LeaguePlayer(
    LeagueId,
    PlayerId
)
OUTPUT inserted.Id
VALUES(
    @LeagueId,
    @PlayerId
)";
            var result  = ExecCommand(command, model);

            return(result ? true : false);
        }
Beispiel #2
0
 public bool AddPlayerToLeague(AddPlayerToLeagueModel model)
 {
     return(_leagueLib.AddPlayerToLeague(model));
 }