แก้ Defect LV1_001 - สร้างรอบการปฏิบัติงาน (ADMIN)_defect_001

This commit is contained in:
Suphonchai Phoonsawat 2023-11-28 11:14:19 +07:00
parent ab9473c133
commit ef66c28f0e
2 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ namespace BMA.EHR.Leave.Service.Controllers
var inserted = new DutyTime
{
Id = Guid.NewGuid(),
Description = data.Description,
Description = data.Description ?? "",
StartTimeMorning = data.StartTimeMorning,
EndTimeMorning = data.EndTimeMorning,
StartTimeAfternoon = data.StartTimeAfternoon,

View file

@ -6,8 +6,8 @@ namespace BMA.EHR.Leave.Service.DTOs.DutyTime
public class CreateDutyTimeDto
{
[Required, Comment("คำอธิบาย")]
public string Description { get; set; } = string.Empty;
[Comment("คำอธิบาย")]
public string? Description { get; set; } = string.Empty;
[Required, Comment("เวลาเข้างานช่วงเช้า")]
public string StartTimeMorning { get; set; } = "00:00";