Exemple #1
0
 public async Task <IQuestionRank> GetAsync(string clientId)
 {
     return(await _tableStorage.GetTopRecordAsync(QuestionRankEntity.GeneratePk(clientId)));
 }
Exemple #2
0
 public async Task <IReadOnlyList <IQuestionRank> > GetAllAsync(string clientId)
 {
     return((await _tableStorage.GetDataAsync(QuestionRankEntity.GeneratePk(clientId))).ToList());
 }
Exemple #3
0
 public Task AddAsync(string clientId, double rank, string changer, string comment)
 {
     return(_tableStorage.TryInsertAsync(QuestionRankEntity.Create(clientId, rank, changer, comment)));
 }