public IHttpActionResult GetAllMessageToUser(UserMessageRelModel model) { UserApi api = new UserApi(); var userApi = api.GetUserInfoByToken(); string GetUserID = userApi.Data.UserId; MessageBLL msg = new MessageBLL(); var get = msg.GetAllMessageToUser(model, GetUserID); return(InspurJson <List <RetUserMessageRel> >(get)); }