From df98a1e0f42db339568a8ec323b7f6a647dfc0ca Mon Sep 17 00:00:00 2001 From: Vijay Uppu <913468@dadeschools.net> Date: Mon, 4 Dec 2023 09:27:58 -0500 Subject: [PATCH] added IsActive flag in doculinks request --- .../DamageAssesment.Api.DocuLinks/Models/ReqDoculink.cs | 1 + .../DamageAssesment.Api.DocuLinks/Providers/UploadService.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Models/ReqDoculink.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Models/ReqDoculink.cs index 270a5f3..b2c129d 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Models/ReqDoculink.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Models/ReqDoculink.cs @@ -7,6 +7,7 @@ namespace DamageAssesment.Api.DocuLinks.Models public int Id { get; set; } public int linkTypeId { get; set; } public List documentsTranslations { get; set; } + public bool IsActive { get; set; } public int CustomOrder { get; set; } public List? Files { get; set; } } diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Providers/UploadService.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Providers/UploadService.cs index 12e29c3..47c1e24 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Providers/UploadService.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Providers/UploadService.cs @@ -73,7 +73,8 @@ namespace DamageAssesment.Api.DocuLinks.Providers } Documents=new Models.Doculink (){ linkTypeId = documentInfo.linkTypeId, documentsTranslations = documentInfo.documentsTranslations,doclinksAttachments=attachments, - IsDeleted=false,CustomOrder=documentInfo.CustomOrder, IsActive =true}; + IsDeleted=false,CustomOrder=documentInfo.CustomOrder, IsActive =documentInfo.IsActive + }; return Documents; } @@ -116,7 +117,7 @@ namespace DamageAssesment.Api.DocuLinks.Providers Id = documentInfo.Id, linkTypeId = documentInfo.linkTypeId, documentsTranslations=documentInfo.documentsTranslations, - IsActive = true, + IsActive = documentInfo.IsActive, IsDeleted=false, CustomOrder = documentInfo.CustomOrder, doclinksAttachments = attachments