public async Task <IActionResult> MakeConnectionRequest([FromQuery(Name = "userName")] string userName) { var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); try { var newRelation = await relationshipService.MakeFriendRequest(userName, userId); return(Ok(newRelation)); } catch (ItemNotFoundException e) { return(BadRequest(e.Message)); } }