Hello,
Using Automapper, Why do I get this error "Value of type 'ProductVM' cannot be converted to 'Product' "
'repo Public Function UpdateProduct(ByVal prod As ProductVM) As ProductVM Dim updateProd = Mapper.Map(Of Product, ProductVM)(prod)<<----error at (prod) ... ... ... Return prod End Class
'EF Generated Partial Public Class Product Public Property ProductId As Integer Public Property ProductName As String Public Property ProductDescription As String Public Property ProductURL As String Public Property ProductLocation As String ... ... ... End Class
'ViewModel (only two properties) Partial Public Class ProductVM Public Property ProductId As Integer Public Property ProductName As String End Class < ...

Go to the complete details ...