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; }
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); }