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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...