ส่ง code แก้ไข OP Change Request 18 ข้อ
This commit is contained in:
@@ -304,7 +304,7 @@ namespace TodoAPI2.Controllers
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogCritical($"Exception while delete {id.ToString()}.", ex);
|
||||
return StatusCode(500, $"Exception while delete {id.ToString()}. {ex.Message}");
|
||||
return StatusCode(500, $"ไม่สามารถลบข้อมูลได้ เพราะข้อมูลถูกใช้ในส่วนงานอื่น");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user