public ApiResponse GetAll() { var products = _productService.GetAll(); var productDtos = _mapper.Map <IList <ProductViewModel> >(products); return(new ApiResponse("list products", productDtos, 200)); }