แก้ไขตาม feedback ในห้อง

This commit is contained in:
Nakorn Rientrakrunchai
2021-02-17 16:44:40 +07:00
parent 2825bdde24
commit 96b8cbd159
10 changed files with 68 additions and 26 deletions

View File

@@ -26,5 +26,20 @@ namespace TodoAPI2.Models
public int? create_evaluation_detail_id_eva_create_evaluation_detail_create_evaluation_id { get; set; }
public string mission_detail_with_enter { get { return replace_with_enter(mission_detail); } }
public string target_with_enter { get { return replace_with_enter(target); } }
public string indicators_with_enter { get { return replace_with_enter(indicators); } }
private string replace_with_enter(string data)
{
if (!string.IsNullOrEmpty(data))
{
return data.Replace("\n", "<br/>");
}
return data;
}
}
}