using AutoMapper; using GxPress.Entity.Menus; namespace GxPress.Mappings { public class MenuMapping: Profile { public MenuMapping() { CreateMap<Menus, Children>(); CreateMap<Children, Menus>(); } } }