Started converting content model mapping over to use AutoMapper to fix the composite tabs/properties. New unit tests for the mapping as well.
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
{
|
||||
|
||||
#region Mapper config
|
||||
public override void ConfigureMappings(IConfiguration config)
|
||||
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
|
||||
{
|
||||
config.CreateMap<IUser, UserDetail>()
|
||||
.ForMember(detail => detail.UserId, opt => opt.MapFrom(user => GetIntId(user.Id)))
|
||||
|
||||
Reference in New Issue
Block a user