public IActionResult ListSupport(ApiListModelBase model) { TASM_SUPPORT_Da da = new TASM_SUPPORT_Da(); SqlSugar.PageModel p = new SqlSugar.PageModel(); p.PageIndex = model.pageindex; p.PageSize = model.pagesize; List <TASM_SUPPORT> list = da.ListByWhere(model.keywords, ref p); return(SuccessResultList(list, p)); }
public JsonResult ProjectList([FromQuery] ApiListModelBase model) { DataAccess.TASM_PROJECTManager manager = new DataAccess.TASM_PROJECTManager(); SqlSugar.PageModel p = new SqlSugar.PageModel(); p.PageIndex = model.pageindex; p.PageSize = model.pagesize; List <ProjectModel> list = new List <ProjectModel>(); manager.ListByWhere(model.keywords, ref p, ref list); return(SuccessResultList(list, p)); }