Пример #1
0
 [Admin]         public static string xmlDB_guidanceItemPath(this TM_FileStorage tmFileStorage, Guid guidanceItemId)
 {
     UserRole.Admin.demand();
     if (guidanceItemId != Guid.Empty)
     {
         if (tmFileStorage.guidanceItems_FileMappings().hasKey(guidanceItemId))
         {
             return(tmFileStorage.guidanceItems_FileMappings()[guidanceItemId]);
         }
     }
     return(null);
 }
        public static string                             removeGuidanceItemFileMapping(this TM_FileStorage tmFileStorage, Guid guidanceItemId)
        {
            var fileMappings = tmFileStorage.guidanceItems_FileMappings();

            if (fileMappings.hasKey(guidanceItemId))
            {
                var xmlPath = fileMappings[guidanceItemId];
                fileMappings.Remove(guidanceItemId);
                return(xmlPath);
            }
            return(null);
        }