public FileFolderViewModel Map(ServerFolder entity, string path, bool hasChild)
        {
            FileFolderViewModel fileFolderView = new FileFolderViewModel
            {
                Id              = entity.Id,
                Name            = entity.Name,
                ContentType     = "Folder",
                CreatedBy       = entity.CreatedBy,
                CreatedOn       = entity.CreatedOn,
                UpdatedOn       = entity.UpdatedOn,
                FullStoragePath = entity.StoragePath,
                HasChild        = hasChild,
                IsFile          = false,
                ParentId        = entity.ParentFolderId,
                StoragePath     = path,
                Size            = entity.SizeInBytes,
                StorageDriveId  = entity.StorageDriveId
            };

            return(fileFolderView);
        }
        public FileFolderViewModel Map(ServerFile entity, string path)
        {
            FileFolderViewModel fileFolderView = new FileFolderViewModel
            {
                Id              = entity.Id,
                Name            = entity.Name,
                ContentType     = entity.ContentType,
                CreatedBy       = entity.CreatedBy,
                CreatedOn       = entity.CreatedOn,
                UpdatedOn       = entity.UpdatedOn,
                FullStoragePath = entity.StoragePath,
                HasChild        = false,
                IsFile          = true,
                ParentId        = entity.StorageFolderId,
                StoragePath     = path,
                Size            = entity.SizeInBytes,
                StorageDriveId  = entity.ServerDriveId,
                Hash            = entity.HashCode
            };

            return(fileFolderView);
        }