Пример #1
0
 public async Task OnGet(int id)
 {
     Chat = await _getChat.Do(id);
 }
Пример #2
0
 public async Task <IActionResult> GetChat([FromServices] GetChat getChat, int id)
 {
     return(Ok(await getChat.Do(id)));
 }