I have a Model an ViewModel Like this, but AutoMapper doesn't pass the values from MyViewModel to MyModel!
MyModel:
public List<string> ContentLinks { get; set; }
public string ListOfContentLinks {
get
{
return String.Join(";", ContentLinks);
}
set {
ContentLinks = value.Split(';').ToList();
}
}
MyViewModel:
public List<string> ContentLink { get; set; }
Boostrapper:
Mapper.CreateMap<MyViewModel, MyModel>();
What do I have to do to make the mapping work correctly?