using AutoMapper; using SessionCompanion.Database.Tables; using SessionCompanion.ViewModels.ShopkeeperViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SessionCompanion.Services.Profiles { public class ShopkeeperProfile : Profile { public ShopkeeperProfile() { CreateMap().ReverseMap(); CreateMap() .ForMember(vm => vm.Items, conf => conf.MapFrom(items => items.ShopkeeperItems)).ReverseMap(); CreateMap() .ForMember(vm => vm.Items, conf => conf.MapFrom(items => items.ShopkeeperItems)).ReverseMap(); } } }