feat(api): Немного сортировки в списках атрибутов
This commit is contained in:
@@ -39,7 +39,8 @@ namespace PARR.API.Controllers.V1
|
||||
[HttpGet(ApiRoutes.UnitField.GetAll)]
|
||||
public async Task<IActionResult> GetAll()
|
||||
{
|
||||
var unitFields = await unitFieldService.Get().OrderBy(t => t.DisplayName)
|
||||
var unitFields = await unitFieldService.Get()
|
||||
.OrderBy(t => t.AihitName)
|
||||
.ToListAsync();
|
||||
|
||||
if (!unitFields.Any())
|
||||
|
||||
Reference in New Issue
Block a user