public HttpResponseMessage Get(string token) { UserSession userSession = sessionServices.Get(token); if (userSession == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } return(Request.CreateResponse( HttpStatusCode.OK, new { Token = token, UserFullname = userSession.Username })); }