コード例 #1
0
        // GET: Catalog
        public ActionResult Index()
        {
            var catalogsVM = new List <CatalogViewModel>();

            foreach (var item in catalogManager.GetCatalogs())
            {
                catalogsVM.Add(MapCatalog(item));
            }
            return(View(catalogsVM));
        }
コード例 #2
0
        public IActionResult GetCatalogs()
        {
            var catalogEntities = _catalogManager.GetCatalogs();

            return(Ok(catalogEntities));
        }