NotificationBar.Models.ModelMappings.Start C# (CSharp) Method

Start() public static method

public static Start ( ) : void
return void
        public static void Start()
        {
            AutoMapper.Mapper.CreateMap<Car, CarViewModel>()
                .ForMember(dst => dst.Description, opt => opt.MapFrom(GetDescription)); // Map the description from the make and model using the below method

            AutoMapper.Mapper.CreateMap<Car, CarEditModel>(); // Make and model are mapped automatically as they are the same name
        }