public static Item ToDto(this Repository.Contracts.Entities.Item from, IMapper mapper) { return(mapper.Map <Item>(from)); }
private static Item Convert(Repository.Contracts.Entities.Item item) { var dto = item?.Convert(); return(dto); }
public static Item Convert(this Repository.Contracts.Entities.Item from) { var map = Dependency.Resolve <IMapper>(); return(map.Map <Item>(from)); }