public ActionResult GetPageData(int page = 1, int size = 10, string search = "") { Expression <Func <Broadcast, bool> > where = b => true; if (!string.IsNullOrEmpty(search)) { where = where.And(b => b.Email.Contains(search)); } var list = BroadcastService.GetPagesNoTracking(page, size, @where, b => b.UpdateTime, false); return(Ok(list)); }