public object Get(GetNavItems request) { return(new GetNavItemsResponse { Results = ViewUtils.NavItems, NavItemsMap = ViewUtils.NavItemsMap, }); }
public object Get(GetNavItems request) { return(new GetNavItemsResponse { BaseUrl = Request.GetBaseUrl(), Results = ViewUtils.NavItems, NavItemsMap = ViewUtils.NavItemsMap, }); }
public object Get(GetNavItems request) { return(request.Name != null ? new GetNavItemsResponse { BaseUrl = Request.GetBaseUrl(), Results = ViewUtils.NavItemsMap.TryGetValue(request.Name, out var navItems) ? navItems : TypeConstants <NavItem> .EmptyList, }