ปรับปรุงการเรียงลำดับ
This commit is contained in:
@@ -79,7 +79,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
var entity = _repository.Get(id);
|
||||
var i = Mapper.Map<vw_limit_frame_planWithSelectionViewModel>(entity);
|
||||
i.item_plan_guid = (from x in _repository.Context.eva_performance_plan select x).ToList();
|
||||
i.item_plan_guid = (from x in _repository.Context.eva_performance_plan orderby x.fiscal_year descending,x.theTime descending select x).ToList();
|
||||
|
||||
|
||||
return i;
|
||||
@@ -87,7 +87,7 @@ namespace TodoAPI2.Models
|
||||
public vw_limit_frame_planWithSelectionViewModel GetBlankItem()
|
||||
{
|
||||
var i = new vw_limit_frame_planWithSelectionViewModel();
|
||||
i.item_plan_guid = (from x in _repository.Context.eva_performance_plan select x).ToList();
|
||||
i.item_plan_guid = (from x in _repository.Context.eva_performance_plan orderby x.fiscal_year descending, x.theTime descending select x).ToList();
|
||||
|
||||
|
||||
return i;
|
||||
|
||||
Reference in New Issue
Block a user