Now it is possible to finnish a tournament with scores and mails
This commit is contained in:
@ -321,5 +321,16 @@ namespace TrackerLibrary.DataAccess
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void CompleteTournament(TournamentModel model)
|
||||
{
|
||||
// spTournaments_Complete
|
||||
using(IDbConnection connection = new System.Data.SqlClient.SqlConnection(GlobalConfig.CnnString(db)))
|
||||
{
|
||||
var p = new DynamicParameters();
|
||||
p.Add("@Id", model.Id);
|
||||
connection.Execute("dbo.spTournaments_Complete", p, commandType: CommandType.StoredProcedure);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user