public HttpResponseMessage GetUserMenuRoleWise(int RoleId) { try { using (CarSystemEntities db = new CarSystemEntities()) { var returnData = db.prGetMenuListRoleWise(RoleId).ToList(); return(Request.CreateResponse(HttpStatusCode.OK, returnData)); } } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, "System has problem to pull user information.")); } return(Request.CreateResponse(HttpStatusCode.InternalServerError, "System has problem to pull user information.")); }