From 79beaf55fa16275d2c57a7226d1219172ea81ebd Mon Sep 17 00:00:00 2001 From: Vijay Uppu <913468@dadeschools.net> Date: Mon, 4 Dec 2023 09:28:24 -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 6263fd9..e9e7690 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; } @@ -117,7 +118,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