public void UpdateToken(int surveyID, string token, int voterId)
 {
     SurveyTokenFactory.Create().UpdateToken(surveyID, token, voterId);
 }
 public bool ValidateToken(int surveyID, string token)
 {
     return(SurveyTokenFactory.Create().ValidateToken(surveyID, token));
 }
 public void AddSurveyTokensMultiple(int surveyId, DateTime creationDate, int count)
 {
     SurveyTokenFactory.Create().AddSurveyTokensMultiple(surveyId, creationDate, Enumerable.Range(1, count).Select(x => Guid.NewGuid().ToString()));
 }
 public void DeleteSurveyTokensByIdMultiple(IList <int> deleteCandidates)
 {
     SurveyTokenFactory.Create().DeleteSurveyTokensByIdMultiple(deleteCandidates);
 }
 public SurveyTokenData GetAllSurveyTokens(int surveyId)
 {
     return(SurveyTokenFactory.Create().GetAllSurveyTokens(surveyId));
 }