//
        public static bool validarImagem(HttpPostedFileBase FileUpload)
        {
            if (FileUpload == null)
            {
                return(false);
            }
            UploadConfig Config = new UploadConfig();

            return(Config.validarExtensaoImagem(FileUpload));
        }
        //
        public static bool isImageExtension(string extension)
        {
            UploadConfig UploadConfig = new UploadConfig();

            return(UploadConfig._allowExtensionsImage.Contains(extension.ToLower()));
        }