public IActionResult Get() { try { var results = catalogueSvc.GetAllCatalogues(); return(Ok(mapper.Map <IEnumerable <Ocuco.DataModel.Catalog.Entities.Catalogue>, IEnumerable <CatalogueViewModel> >(results))); } catch (Exception ex) { logger.LogError($"Failed to get Catalogue Customers: {ex}"); return(BadRequest("Failed to get Catalogue Customers")); } }