public async Task <IActionResult> GetIncomingRequests([FromRoute] Guid userId) { var tkn = Request.Headers["Authorization"]; if (!_authService.AuthorizeSelf(tkn, userId)) { return(Unauthorized()); } return(Ok(await _requestsRepository.GetRequestsByReceiverId(userId))); }