宁波市生活垃圾分类志愿服务项目交流打分
This commit is contained in:
@@ -42,10 +42,12 @@ namespace Vote.Services.ApiController
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Microsoft.AspNetCore.Authorization.AllowAnonymous]
|
||||
public async Task<dynamic> List()
|
||||
public async Task<dynamic> List(ListInput args)
|
||||
{
|
||||
args ??= new ListInput();
|
||||
var data = await repuserscore.AsQueryable()
|
||||
.OrderBy(a => a.No)
|
||||
.OrderByIF(!string.IsNullOrWhiteSpace(args.order), args.order)
|
||||
.OrderByIF(string.IsNullOrWhiteSpace(args.order), a => a.No)
|
||||
.ToListAsync();
|
||||
// var data = await repuserscore20250801.DetachedEntities
|
||||
// .OrderBy(a => a.No)
|
||||
|
||||
Reference in New Issue
Block a user