Fixed map definitions.
This commit is contained in:
@@ -27,7 +27,7 @@ public class DocumentMapDefinition : ContentMapDefinition<IContent, DocumentValu
|
||||
mapper.Define<ContentScheduleCollection, DocumentResponseModel>(Map);
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -Urls -Template
|
||||
// Umbraco.Code.MapAll -Urls -Template -Signs
|
||||
private void Map(IContent source, DocumentResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
@@ -45,7 +45,7 @@ public class DocumentMapDefinition : ContentMapDefinition<IContent, DocumentValu
|
||||
target.IsTrashed = source.Trashed;
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -Urls -Template
|
||||
// Umbraco.Code.MapAll -Urls -Template -Signs
|
||||
private void Map(IContent source, PublishedDocumentResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
@@ -67,7 +67,7 @@ public class DocumentMapDefinition : ContentMapDefinition<IContent, DocumentValu
|
||||
target.IsTrashed = source.Trashed;
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -IsProtected -Ancestors
|
||||
// Umbraco.Code.MapAll -IsProtected -Ancestors -Signs
|
||||
private void Map(IContent source, DocumentCollectionResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
@@ -101,7 +101,7 @@ public class DocumentMapDefinition : ContentMapDefinition<IContent, DocumentValu
|
||||
}
|
||||
|
||||
|
||||
// Umbraco.Code.MapAll
|
||||
// Umbraco.Code.MapAll -Signs
|
||||
private void Map(IContent source, DocumentBlueprintResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.Mapping.Content;
|
||||
using Umbraco.Cms.Api.Management.Mapping.Content;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.Media;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.Media.Collection;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
@@ -24,7 +24,7 @@ public class MediaMapDefinition : ContentMapDefinition<IMedia, MediaValueRespons
|
||||
mapper.Define<IMedia, MediaCollectionResponseModel>((_, _) => new MediaCollectionResponseModel(), Map);
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll -Urls
|
||||
// Umbraco.Code.MapAll -Urls -Signs
|
||||
private void Map(IMedia source, MediaResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
@@ -34,7 +34,7 @@ public class MediaMapDefinition : ContentMapDefinition<IMedia, MediaValueRespons
|
||||
target.IsTrashed = source.Trashed;
|
||||
}
|
||||
|
||||
// Umbraco.Code.MapAll
|
||||
// Umbraco.Code.MapAll -Signs
|
||||
private void Map(IMedia source, MediaCollectionResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.Mapping.Content;
|
||||
using Umbraco.Cms.Api.Management.Mapping.Content;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.Member;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MemberType;
|
||||
using Umbraco.Cms.Core.Mapping;
|
||||
@@ -17,7 +17,7 @@ public class MemberMapDefinition : ContentMapDefinition<IMember, MemberValueResp
|
||||
public void DefineMaps(IUmbracoMapper mapper)
|
||||
=> mapper.Define<IMember, MemberResponseModel>((_, _) => new MemberResponseModel(), Map);
|
||||
|
||||
// Umbraco.Code.MapAll -IsTwoFactorEnabled -Groups -Kind
|
||||
// Umbraco.Code.MapAll -IsTwoFactorEnabled -Groups -Kind -Signs
|
||||
private void Map(IMember source, MemberResponseModel target, MapperContext context)
|
||||
{
|
||||
target.Id = source.Key;
|
||||
|
||||
Reference in New Issue
Block a user