Add Count for PointRepository
This commit is contained in:
parent
17a59ad516
commit
343e0e7626
@ -76,6 +76,18 @@ namespace ChaosBot.Database.Repository
|
||||
}
|
||||
|
||||
|
||||
public static int Count(string userId, string guildId)
|
||||
{
|
||||
Dictionary<string, object> selectfilterDict = new Dictionary<string, object>();
|
||||
selectfilterDict.Add("userId", userId);
|
||||
selectfilterDict.Add("guildId", guildId);
|
||||
|
||||
DataTable dt = Controller.SelectQuery(Table, "COUNT(*)", selectfilterDict);
|
||||
|
||||
return Convert.ToInt32(dt.Rows[0]["COUNT(*)"]);
|
||||
}
|
||||
|
||||
|
||||
public static int Add(string userId, int points, string guildId)
|
||||
{
|
||||
Dictionary<string, object> selectfilterDict = new Dictionary<string, object>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user