public IActionResult Index() { // var actives = _ProductsManager.ListActiveProducts("name").ProjectTo<ProductModel>(Mappings.Mapper.ConfigurationProvider).ToList(); var actives1 = _ProductsManager.ListActiveProducts("name").ToList(); return(View()); }
// GET: Product public ActionResult Index(string sort) { var actives = _ProductsManager.ListActiveProducts(sort).ToList(); return(View()); }