แก้ไข op หลายข้อ

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-04-28 14:12:17 +07:00
parent b84b7cda5f
commit 9f106272c8
6 changed files with 18 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ namespace TodoAPI2.Models
var entity = _repository.Get(id);
var i = Mapper.Map<rep_eva02WithSelectionViewModel>(entity);
i.item_org_id = (from x in ext.GetSortingDep() select x).ToList();
i.item_round_id = (from x in ext.GetEvaRound() select x).ToList();
i.item_round_id = (from x in ext.GetEvaRound() orderby x.external_code descending select x).ToList();
return i;
@@ -67,7 +67,7 @@ namespace TodoAPI2.Models
{
var i = new rep_eva02WithSelectionViewModel();
i.item_org_id = (from x in ext.GetSortingDep() select x).ToList();
i.item_round_id = (from x in ext.GetEvaRound() select x).ToList();
i.item_round_id = (from x in ext.GetEvaRound() orderby x.external_code descending select x).ToList();
return i;