public HttpResponseMessage Get(int userId) { var userInformationList = _userInfoServices.getUserInformationByUserId(userId); if (userInformationList != null) { return(Request.CreateResponse(HttpStatusCode.OK, userInformationList)); } return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No userinformation List Available")); }