Пример #1
0
 public AgendaItem MapAgendaItem(INode nodetomap)
 {
     if (nodetomap == null) return null;
     var fCat = new AgendaItem
     {
         Id = nodetomap.Id,
         Title = nodetomap.Name,
         Url = library.NiceUrl(nodetomap.Id),
         Description = nodetomap.GetProperty("description").Value,
     };
     return fCat;
 }
Пример #2
0
        public AgendaItem MapAgendaItem(INode nodetomap)
        {
            if (nodetomap == null)
            {
                return(null);
            }
            var fCat = new AgendaItem
            {
                Id          = nodetomap.Id,
                Title       = nodetomap.Name,
                Url         = library.NiceUrl(nodetomap.Id),
                Description = nodetomap.GetProperty("description").Value,
            };

            return(fCat);
        }