Пример #1
0
        public async Task FindEntityAsync_Question(int id)
        {
            var entity = await repo.FindEntityAsync <Question>(id);

            //Asserts
            Assert.True(entity != null);
        }
Пример #2
0
 public async Task <IActionResult> GetEntityAsync([FromRoute] object PublicKeyId)
 {
     return(Ok(await repo.FindEntityAsync <Question>(PublicKeyId)));
 }