STAGE 2 OK

This commit is contained in:
2025-11-12 17:51:42 +08:00
parent 9969417bd8
commit ba6e641bac
4 changed files with 14 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ public class activity_kindController : ApiController
public IHttpActionResult GetList([FromBody] Model.ViewModel.actItem_kind q,
int page, int pageSize = 10, string sortBy = "", bool sortDesc = false)
{
var qry = _db.actItem_kind.AsEnumerable();
var qry = _db.actItem_kind.AsQueryable();
if (!string.IsNullOrEmpty(q.kind))
qry = qry.Where(o => o.kind.Contains(q.kind));
if (!string.IsNullOrEmpty(q.status))