I have searched on Stack Overflow and googled about it but I haven\'t been able to find any help or suggestion on this.
I have a class like the following which create a <
According to the AutoMapper wiki:
public class Source {
public T Value { get; set; }
}
public class Destination {
public T Value { get; set; }
}
// Create the mapping
Mapper.CreateMap(typeof(Source<>), typeof(Destination<>));
In your case this would be
Mapper.CreateMap(typeof(PagedList<,>), typeof(PagedListViewModel<>));