public static Business.DeleteBlobParameters TranslateFromServiceToBusiness(DataContracts.DeleteBlobParameters serviceItem)
        {
            if (serviceItem == null)
            {
                return(null);
            }

            Business.DeleteBlobParameters businessItem = new Business.DeleteBlobParameters();

            businessItem.ContainerName = serviceItem.ContainerName;
            businessItem.BlobName      = serviceItem.BlobName;

            return(businessItem);
        }
        public DeleteBlobResponse DeleteBlob(DeleteBlobRequest request)
        {
            lock (deleteBlobActionLock)
            {
                if (deleteBlobAction == null)
                {
                    deleteBlobAction = PolicyInjection.Create <BusinessActions.DeleteBlobAction>();
                }
            }

            request.DeleteBlobParameters.ContainerName = GetUserContainerName(request.DeleteBlobParameters.ContainerName);

            BusinessEntities.DeleteBlobParameters parameters = DeleteBlobParametersTranslator.TranslateFromServiceToBusiness(request.DeleteBlobParameters);
            BusinessEntities.DeleteBlobResult     result     = deleteBlobAction.Execute(parameters);

            DeleteBlobResponse response = new DeleteBlobResponse();

            response.DeleteBlobResult = DeleteBlobResultTranslator.TranslateFromBusinessToService(result);

            return(response);
        }
        public static DataContracts.DeleteBlobParameters TranslateFromBusinessToService(Business.DeleteBlobParameters businessItem)
        {
            if (businessItem == null)
            {
                return(null);
            }

            DataContracts.DeleteBlobParameters serviceItem = new DataContracts.DeleteBlobParameters();
            serviceItem.ContainerName = businessItem.ContainerName;
            serviceItem.BlobName      = businessItem.BlobName;

            return(serviceItem);
        }