Ejemplo n.º 1
0
        public ActionResult Index()
        {
            ProductListModel     productsListModel    = _getProductsQuery.Execute(new ProductCriteriaModel());
            ProductListViewModel productListViewModel = _mapper.Map <ProductListViewModel>(productsListModel);

            return(View("Products", productListViewModel));
        }
Ejemplo n.º 2
0
 public IEnumerable <ProductModel> Get()
 {
     return(_query.Execute());
 }
 // GET: api/Products
 public List <GetProductsModel> GetProduct()
 {
     return(_IGetProductsQuery.Execute());
 }