/// <summary>
        /// Moves thumbnail from temporary storage to thumbnail storage in azure.
        /// </summary>
        /// <param name="profileImageId">Guid of the temporary profile image.</param>
        private Guid?MoveThumbnail(Guid?profileImageId)
        {
            Guid?thumbnailId = null;

            if (profileImageId.HasValue && !profileImageId.Equals(Guid.Empty))
            {
                var thumbnailBlob = new BlobDetails()
                {
                    BlobID = profileImageId.ToString()
                };

                thumbnailId = _blobDataRepository.MoveThumbnail(thumbnailBlob) ? profileImageId.Value : Guid.Empty;
            }

            return(thumbnailId);
        }
        /// <summary>
        /// Moves thumbnail from temporary storage to thumbnail storage in azure.
        /// </summary>
        /// <param name="fileDetails">Details of the thumbnail.</param>
        private Guid MoveThumbnail(FileDetail fileDetails)
        {
            var thumbnailId = Guid.Empty;

            if (fileDetails != null && fileDetails.AzureID != Guid.Empty)
            {
                var thumbnailBlob = new BlobDetails()
                {
                    BlobID = fileDetails.AzureID.ToString()
                };

                thumbnailId = _blobDataRepository.MoveThumbnail(thumbnailBlob) ? fileDetails.AzureID : Guid.Empty;
            }

            return(thumbnailId);
        }