public async Task <IActionResult> Get()
        {
            var request = await _contactBookRepository.GetContactsAsync(this.UserIdentity.UserId);

            return(Json(request));
        }
Esempio n. 2
0
 public async Task <IActionResult> GetContactsAsync(CancellationToken cancellationToken)
 {
     return(Ok(await _contactBookRepository.GetContactsAsync(UserIdentity.UserId, cancellationToken)));
 }