public static string GetImageCachePath(LoginUser loginUser)
        {
            //string path = SystemSettings.ReadString(loginUser, "ImageCachePath", "C:\\TSData\\ImageCache");
            FilePaths filePaths = new Data.FilePaths(loginUser);

            filePaths.LoadByID(2);
            string path = filePaths[0].Value;

            Directory.CreateDirectory(path);
            return(path);
        }
        /// <summary>
        /// Gets the root path for attachments as specified in the SystemSettings table
        /// </summary>
        /// <param name="loginUser"></param>
        /// <param name="organizationID"></param>
        /// <returns></returns>
        public static string GetRoot(LoginUser loginUser, int organizationID)
        {
            //string root = SystemSettings.ReadString(loginUser, "FilePath", "C:\\TSData");
            FilePaths filePath = new Data.FilePaths(loginUser);

            filePath.LoadByID(1);
            string root = filePath[0].Value;
            string path = Path.Combine(Path.Combine(root, "Organizations"), organizationID.ToString());

            Directory.CreateDirectory(path);
            return(path);
        }