public IActionResult GetProductsByCategory(string category) { try { return(Ok(_dutchRepo.GetProductsByCategory(category))); } catch (System.Exception ex) { _logger.LogError($"Failed to retrieve Products by category: {ex}"); return(BadRequest("Failed to get Products by category")); } }