public async Task <IActionResult> AcceptRequest(int senderId) { try { var myID = int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value); await usersService.AcceptRequest(senderId, myID); return(NoContent()); } catch (Exception e) { return(BadRequest(e.Message)); } }