Example #1
0
        public static Business.DeleteBlobResult TranslateFromServiceToBusiness(DataContracts.DeleteBlobResult serviceItem)
        {
            if (serviceItem == null)
            {
                return(null);
            }

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

            return(businessItem);
        }
Example #2
0
        public static DataContracts.DeleteBlobResult TranslateFromBusinessToService(Business.DeleteBlobResult businessItem)
        {
            if (businessItem == null)
            {
                return(null);
            }

            DataContracts.DeleteBlobResult serviceItem = new DataContracts.DeleteBlobResult();

            return(serviceItem);
        }
        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);
        }