public void SaveEntity(IFormFile file, string filePath, string binaryObjectId, string organizationId, string apiComponent, string folder)
        {
            string storageProvider = string.Empty;
            string adapter         = Configuration["BinaryObjects:Adapter"];

            if (adapter.Equals("FileSystemAdapter"))
            {
                storageProvider = Configuration["BinaryObjects:StorageProvider"];
            }

            blobStorageAdapter.SaveEntity(file, filePath, binaryObjectId, organizationId, apiComponent, storageProvider, folder);
        }
        public void SaveEntity(IFormFile file, string filePath, BinaryObject binaryObject, string apiComponent, string organizationId)
        {
            string storageProvider = string.Empty;
            string adapter         = Configuration["BinaryObjects:Adapter"];

            if (adapter.Equals("FileSystemAdapter"))
            {
                storageProvider = Configuration["BinaryObjects:StorageProvider"];
            }

            string hash = string.Empty;

            byte[] bytes = System.IO.File.ReadAllBytes(filePath);
            using (SHA256 sha256Hash = SHA256.Create())
            {
                hash = GetHash(sha256Hash, bytes);
            }

            blobStorageAdapter.SaveEntity(file, filePath, binaryObject, apiComponent, organizationId, storageProvider, hash);
        }