Ejemplo n.º 1
0
 private Guid GetGuidId(Summary summary)
 {
     if (summary.Id is string)
         return new Guid((string)summary.Id);
     else if (summary.Id is Guid)
         return (Guid)summary.Id;
     else
         throw new Exception("Building navigation: summary has wrong id type: " + summary.Id.GetType().FullName);
 }
Ejemplo n.º 2
0
        public NavTreeSummary(Summary summary)
            : this()
        {
            Guid id = GetGuidId(summary);

            Id = id;
            Title = summary.Title;
            Type = summary.Type;
            Url = summary.Url;
        }
Ejemplo n.º 3
0
 public SingleContent()
 {
     Summary = new Summary();
 }