コード例 #1
0
        public async Task FindEntityAsync_Question(int id)
        {
            var entity = await repo.FindEntityAsync <Question>(id);

            //Asserts
            Assert.True(entity != null);
        }
コード例 #2
0
ファイル: EntityController.cs プロジェクト: gkama/gtk-survey
 public async Task <IActionResult> GetEntityAsync([FromRoute] object PublicKeyId)
 {
     return(Ok(await repo.FindEntityAsync <Question>(PublicKeyId)));
 }