public async Task <IActionResult> Get() { var request = await _contactBookRepository.GetContactsAsync(this.UserIdentity.UserId); return(Json(request)); }
public async Task <IActionResult> GetContactsAsync(CancellationToken cancellationToken) { return(Ok(await _contactBookRepository.GetContactsAsync(UserIdentity.UserId, cancellationToken))); }