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