// GET: Catalog public ActionResult Index() { var catalogsVM = new List <CatalogViewModel>(); foreach (var item in catalogManager.GetCatalogs()) { catalogsVM.Add(MapCatalog(item)); } return(View(catalogsVM)); }
public IActionResult GetCatalogs() { var catalogEntities = _catalogManager.GetCatalogs(); return(Ok(catalogEntities)); }