I use from CreateFormDto Method and MapDto Method for convert DTO to Entity and also Entity to DTO. Now I can not convert these, for example:
public Paginated<TDomainDto> SearchPage(Expression<Func<TDomainDto, bool>> predicate, int page, int size)
{
return BaseService.SearchPage(predicate: predicate, page: page, size: size);
}
I get error in this line (predicate: predicate,
and this error is cannot convert from 'System.Linq.Expressions.Expression<System.Func<TDomainDto, bool>>' to 'System.Linq.Expressions.Expression<System.Func<TDomain, bool>>'