แก้บักด่วน 1 รายการ

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-14 11:35:46 +07:00
parent 7d46ee9b2d
commit 584974a0e9
2 changed files with 3 additions and 3 deletions

View File

@@ -53,9 +53,9 @@ namespace TodoAPI2.Models
{
if (!string.IsNullOrEmpty(behavior))
{
if (behavior.Split(' ').Count() > 1)
if (behavior.Trim().Split(' ').Count() > 1)
{
return behavior.Replace(behavior.Split(' ')[0], "");
return behavior.Replace(behavior.Trim().Split(' ')[0], "");
}
}
return behavior;

View File

@@ -106,7 +106,7 @@ namespace TodoAPI2.Models
&& (m_eva_evaluation_behavior.create_evaluation_detail_id == model.create_evaluation_detail_id || !model.create_evaluation_detail_id.HasValue)
orderby m_eva_evaluation_behavior.behavior
orderby m_eva_evaluation_behavior.behavior_fix
select new eva_evaluation_behaviorViewModel()
{
id = m_eva_evaluation_behavior.id,