From 584974a0e9d30de53d35add3a36307d1f88adbdb Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Fri, 14 Aug 2020 11:35:46 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=81=E0=B8=94=E0=B9=88=E0=B8=A7=E0=B8=99=201=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eva_evaluation_behavior/eva_evaluation_behaviorEntity.cs | 4 ++-- .../eva_evaluation_behavior/eva_evaluation_behaviorService.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/eva_evaluation_behavior/eva_evaluation_behaviorEntity.cs b/Models/eva_evaluation_behavior/eva_evaluation_behaviorEntity.cs index f7f6cf5..3bc13c1 100644 --- a/Models/eva_evaluation_behavior/eva_evaluation_behaviorEntity.cs +++ b/Models/eva_evaluation_behavior/eva_evaluation_behaviorEntity.cs @@ -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; diff --git a/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs b/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs index 04f28ce..1636267 100644 --- a/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs +++ b/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs @@ -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,