public HttpResponseMessage GetInvitationsReceived(int userid) { var result = _friendsService.GetInvitationsReceived(userid); return(Request.CreateResponse(HttpStatusCode.OK, result)); }