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