using AutoMapper; using SessionCompanion.Database.Tables; using SessionCompanion.ViewModels.ShopkeeperItemsViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SessionCompanion.Services.Profiles { using SessionCompanion.ViewModels.ShopkeeperItemViewModels; public class ShopkeeperItemsProfile : Profile { public ShopkeeperItemsProfile() { CreateMap().ReverseMap(); CreateMap() .ForMember(vm => vm.Armor, conf => conf.MapFrom(item => item.Armor)) .ForMember(vm => vm.Weapon, conf => conf.MapFrom(item => item.Weapon)).ReverseMap(); } } }