Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to use IUmbracoMapper to map the ContentModel to Custom Model?
public class HomeModel { public string Title { get; set; } public string Section { get; set; } }
@using Umbraco.Cms.Core.Mapping @inject IUmbracoMapper _mapper; @{ Layout = "MasterLayout.cshtml";
var data = _mapper.Map<KAD.Umb.Project.Website.Models.HomeModel>(Model);
}
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to use IUmbracoMapper to map the ContentModel to Custom Model
How to use IUmbracoMapper to map the ContentModel to Custom Model?
public class HomeModel { public string Title { get; set; } public string Section { get; set; } }
@using Umbraco.Cms.Core.Mapping @inject IUmbracoMapper _mapper; @{ Layout = "MasterLayout.cshtml";
}
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.