public IEnumerable <ProductView> GetProductsBySupplier(int id) { var products = suppliersService.GetProductsBySupplier(id); return(mapper.Map <IEnumerable <ProductDTO>, IEnumerable <ProductView> >(products)); }