/// <summary> /// /// </summary> /// <param name="ds"></param> /// <returns></returns> public ModelDashboard ToModel() { var md = new ModelDashboard() { OrgId = OrgId, Id = Id, Title = Title, Uid = Uid, HasAcl = HasAcl, Data = Data, FolderId = FolderId, Tags = Tags .Select(x => x.Term) .ToList(), Stars = Stars .Select(x => x.UserId) .ToList() }; md.Bag.FolderUid = Folder?.Uid; md.Bag.FolderTitle = Folder?.Title; md.Bag.FolderUrl = Folder?.ToModel().Url; return(md); }