public Reply GetSent([FromUri] SessionData data) { try { _sessionService.Validate(data.UserId, data.SessionToken); } catch (InvalidSessionException) { return(new Reply(HttpStatusCode.BadRequest, "Invalid session")); } var requests = _friendRequestService.GetSent(data.UserId); return(new FriendRequestsReply { Requests = requests }); }