예제 #1
0
        public IActionResult Index()
        {
            // var actives = _ProductsManager.ListActiveProducts("name").ProjectTo<ProductModel>(Mappings.Mapper.ConfigurationProvider).ToList();
            var actives1 = _ProductsManager.ListActiveProducts("name").ToList();

            return(View());
        }
예제 #2
0
        // GET: Product
        public ActionResult Index(string sort)
        {
            var actives = _ProductsManager.ListActiveProducts(sort).ToList();

            return(View());
        }