示例#1
0
 public object Get(GetNavItems request)
 {
     return(new GetNavItemsResponse {
         Results = ViewUtils.NavItems,
         NavItemsMap = ViewUtils.NavItemsMap,
     });
 }
示例#2
0
 public object Get(GetNavItems request)
 {
     return(new GetNavItemsResponse {
         BaseUrl = Request.GetBaseUrl(),
         Results = ViewUtils.NavItems,
         NavItemsMap = ViewUtils.NavItemsMap,
     });
 }
示例#3
0
 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,
     }