View Source
Class ContentItemBinder
The model binder for Umbraco.Web.Models.ContentEditing.ContentItemSave
Inheritance
System.Object
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class ContentItemBinder : IModelBinder
Constructors
View Source
ContentItemBinder(IJsonSerializer, IUmbracoMapper, IContentService, IContentTypeService, IHostingEnvironment)
Declaration
public ContentItemBinder(IJsonSerializer jsonSerializer, IUmbracoMapper umbracoMapper, IContentService contentService, IContentTypeService contentTypeService, IHostingEnvironment hostingEnvironment)
Parameters
| Type |
Name |
Description |
| IJsonSerializer |
jsonSerializer |
|
| IUmbracoMapper |
umbracoMapper |
|
| IContentService |
contentService |
|
| IContentTypeService |
contentTypeService |
|
| IHostingEnvironment |
hostingEnvironment |
|
Methods
View Source
BindModelAsync(ModelBindingContext)
Declaration
public async Task BindModelAsync(ModelBindingContext bindingContext)
Parameters
| Type |
Name |
Description |
| Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext |
bindingContext |
|
Returns
View Source
GetExisting(ContentItemSave)
Declaration
protected virtual IContent? GetExisting(ContentItemSave model)
Parameters
| Type |
Name |
Description |
| ContentItemSave |
model |
|
Returns
| Type |
Description |
| System.Nullable<IContent> |
|