Пример #1
0
 public static SpecViewModel FromModel(LinkItem model)
 {
     if (model == null)
     {
         return null;
     }
     var result = new SpecViewModel
     {
         Uid = model.Name,
         Name = model.DisplayName,
         FullName = model.DisplayQualifiedNames,
         IsExternal = model.IsExternalPath,
         Href = model.Href,
     };
     return result;
 }
Пример #2
0
        public static SpecViewModel FromModel(LinkItem model)
        {
            if (model == null)
            {
                return(null);
            }
            var result = new SpecViewModel
            {
                Uid        = model.Name,
                Name       = model.DisplayName,
                FullName   = model.DisplayQualifiedNames,
                IsExternal = model.IsExternalPath,
                Href       = model.Href,
            };

            return(result);
        }