/// <summary>
        /// Converts the domain model into an entity.
        /// </summary>
        /// <returns>The entity.</returns>
        /// <param name="sharedPictureFile">Shpi.</param>
        internal static SharedPictureFileEntity ToEntity(this SharedPictureFile sharedPictureFile)
        {
            SharedPictureFileEntity sharedPictureFileEntity = new SharedPictureFileEntity
            {
                FileLength   = sharedPictureFile.FileLength,
                ObjectsCount = sharedPictureFile.ObjectsCount,
                DirectoryId  = sharedPictureFile.DirectoryId
            };

            return(sharedPictureFileEntity);
        }
        /// <summary>
        /// Converts the entity into a domain model.
        /// </summary>
        /// <returns>The domain model.</returns>
        /// <param name="sharedPictureFileEntity">Shpi entity.</param>
        internal static SharedPictureFile ToDomainModel(this SharedPictureFileEntity sharedPictureFileEntity)
        {
            SharedPictureFile sharedPictureFile = new SharedPictureFile
            {
                FileLength   = sharedPictureFileEntity.FileLength,
                ObjectsCount = sharedPictureFileEntity.ObjectsCount,
                DirectoryId  = sharedPictureFileEntity.DirectoryId
            };

            return(sharedPictureFile);
        }