แก้บักด่วน

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-08-27 16:00:43 +07:00
parent e91666e9db
commit b44c25e2d7

View File

@@ -27,7 +27,20 @@ namespace TodoAPI2.Models
public DateTime? end_leave { get; set; }
[NotMapped]
public string display_text { get; set; }
public string display_text
{
get
{
if (!theTime.HasValue || !fiscal_year.HasValue)
{
return "";
}
else
{
return theTime.ToString() + "/" + fiscal_year.ToString();
}
}
}
public void SetAutoField(DataContext context)