diff --git a/IRaCIS.Core.API/Controllers/InspectionController.cs b/IRaCIS.Core.API/Controllers/InspectionController.cs index c55bf4ed9..8640708ca 100644 --- a/IRaCIS.Core.API/Controllers/InspectionController.cs +++ b/IRaCIS.Core.API/Controllers/InspectionController.cs @@ -99,7 +99,7 @@ namespace IRaCIS.Core.API.Controllers public async Task SetSubjectVisitUrgent(DataInspectionDto opt) { - var fun = await _subjectVisitService.SetSubjectVisitUrgent(opt.OptCommand.subjectVisitId,opt.OptCommand.isUrgent); + var fun = await _subjectVisitService.SetSubjectVisitUrgent(opt.OptCommand.SubjectVisitId, opt.OptCommand.isUrgent); if (!fun.IsSuccess) { return ResponseOutput.NotOk(fun.ErrorMessage); @@ -112,7 +112,7 @@ namespace IRaCIS.Core.API.Controllers public async Task DeleteSV(DataInspectionDto opt) { - var fun = await _subjectVisitService.DeleteSV(opt.OptCommand.Id); + var fun = await _subjectVisitService.DeleteSV(opt.OptCommand.SubjectVisitId); if (!fun.IsSuccess) { return ResponseOutput.NotOk(fun.ErrorMessage); @@ -124,7 +124,7 @@ namespace IRaCIS.Core.API.Controllers public async Task SetSVExecuted(DataInspectionDto opt) { - var fun = await _subjectVisitService.SetSVExecuted(opt.OptCommand.Id); + var fun = await _subjectVisitService.SetSVExecuted(opt.OptCommand.SubjectVisitId); if (!fun.IsSuccess) { return ResponseOutput.NotOk(fun.ErrorMessage); diff --git a/IRaCIS.Core.Application/Service/Visit/DTO/VisitPointViewModel.cs b/IRaCIS.Core.Application/Service/Visit/DTO/VisitPointViewModel.cs index c31d41951..5f6b621c0 100644 --- a/IRaCIS.Core.Application/Service/Visit/DTO/VisitPointViewModel.cs +++ b/IRaCIS.Core.Application/Service/Visit/DTO/VisitPointViewModel.cs @@ -46,12 +46,12 @@ namespace IRaCIS.Core.Application.Contracts public class DeleteSVCommand { - public Guid Id { get; set; } + public Guid SubjectVisitId { get; set; } } public class SetSubjectVisitUrgentCommand { - public Guid subjectVisitId { get; set; } + public Guid SubjectVisitId { get; set; } public bool isUrgent { get; set; }