This commit is contained in:
王炜翔 2024-11-24 22:54:07 +08:00
parent 640f20729e
commit 5f52096f03

View File

@ -300,13 +300,9 @@ namespace asg_form.Controllers.Teamregistration
} }
using (TestDbContext sub = new TestDbContext()) using (TestDbContext sub = new TestDbContext())
{ {
var query = sub.T_Comform.AsQueryable() var query = await sub.T_Comform.FirstOrDefaultAsync(n => n.id == Id);
.Where(n => n.id == Id)
.OrderByDescending(a => a.user_id);
var result = await query.ToListAsync(); return Ok(new { code = 200, data = query });
return Ok(new { code = 200, data = result });
} }
} }
} }