ปรับปรุงหลายอย่าง

This commit is contained in:
nakorn
2022-03-19 11:32:56 +07:00
parent 61f067f150
commit c6d107e179
11 changed files with 2588 additions and 10 deletions

View File

@@ -232,10 +232,10 @@ namespace TodoAPI2.Models
where i.id == model.create_evaluation_detail_id
select i).FirstOrDefault();
if (current_detail.status_self == "Y")
{
throw new Exception("คุณนำส่งข้อตกลงการประเมินไปแล้ว ไม่สามารถบันทึกได้");
}
//if (current_detail.status_self == "Y")
//{
// throw new Exception("คุณนำส่งข้อตกลงการประเมินไปแล้ว ไม่สามารถบันทึกได้");
//}
var existingEntity = _repository.Get(id);
if (existingEntity != null)