Ejemplo n.º 1
0
        public IActionResult GetCustomMenu(string type, string id, [FromQuery] string ru)
        {
            var menuItems = _widgetProvider.GetCustomMenuItems(type, id, ru);

            return(new JsonResult(menuItems.Select(x => new
            {
                Url = x.Url,
                Title = x.Title,
                Icon = x.Icon.ToString()
            })));
        }