public IHttpActionResult SearchNotifyByName(string Name = null, string StartTime = null, string EndTime = null) { string token = HttpContext.Current.Request.Headers["token"]; var userInfo = JwtTools.DEcode(token); //调用usermanager.getuserinfo 获取用户信息 var user = UserManager.GetUserInfo(userInfo["name"]); var result = NotifyManager.GetNotifyByName(user.organizationID, Name, StartTime, EndTime); return(this.SendData(result)); }