Browse Source
Merge pull request #23674 from abpframework/CmsKitPublicObjectContext
Set `ObjectMapperContext` in `CmsKitPublic` project.
issue-22408
Gizem Mutu Kurt
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Controllers/CmsKitPublicControllerBase.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml.cs
|
|
@ -8,5 +8,6 @@ public abstract class CmsKitPublicControllerBase : AbpController |
|
|
public CmsKitPublicControllerBase() |
|
|
public CmsKitPublicControllerBase() |
|
|
{ |
|
|
{ |
|
|
LocalizationResource = typeof(CmsKitResource); |
|
|
LocalizationResource = typeof(CmsKitResource); |
|
|
|
|
|
ObjectMapperContext = typeof(CmsKitPublicWebModule); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -20,6 +20,8 @@ public class IndexModel : CommonPageModel |
|
|
|
|
|
|
|
|
public IndexModel(IPagePublicAppService pagePublicAppService, ContentParser contentParser) |
|
|
public IndexModel(IPagePublicAppService pagePublicAppService, ContentParser contentParser) |
|
|
{ |
|
|
{ |
|
|
|
|
|
ObjectMapperContext = typeof(CmsKitPublicWebModule); |
|
|
|
|
|
|
|
|
PagePublicAppService = pagePublicAppService; |
|
|
PagePublicAppService = pagePublicAppService; |
|
|
ContentParser = contentParser; |
|
|
ContentParser = contentParser; |
|
|
} |
|
|
} |
|
|
|