diff --git a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs index aa7bafd284..a2f50e8f22 100644 --- a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs +++ b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs @@ -1,20 +1,11 @@ -using System; -using System.Runtime.Serialization; -using Volo.Abp; +using Volo.Abp; namespace Volo.Docs { - [Serializable] public class DocumentNotFoundException : BusinessException { public string DocumentUrl { get; set; } - public DocumentNotFoundException(SerializationInfo serializationInfo, StreamingContext context) - : base(serializationInfo, context) - { - - } - public DocumentNotFoundException(string documentUrl) { DocumentUrl = documentUrl; diff --git a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs index 6feff9c5cd..0f156edc47 100644 --- a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs +++ b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs @@ -1,20 +1,11 @@ -using System; -using System.Runtime.Serialization; -using Volo.Abp; +using Volo.Abp; namespace Volo.Docs { - [Serializable] public class ResourceNotFoundException : BusinessException { public string ResourceName { get; set; } - public ResourceNotFoundException(SerializationInfo serializationInfo, StreamingContext context) - : base(serializationInfo, context) - { - - } - public ResourceNotFoundException(string resourceName) { ResourceName = resourceName; diff --git a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs index 45a5cdf515..71a1d83b4c 100644 --- a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs +++ b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp; diff --git a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs index 1cc1f80cc8..3a23d379ef 100644 --- a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs +++ b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp; diff --git a/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs b/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs index 3e21bab9c7..976782bfce 100644 --- a/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs +++ b/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp;