public static Business.DeleteContainerResult TranslateFromServiceToBusiness(DataContracts.DeleteContainerResult serviceItem) { if (serviceItem == null) { return(null); } Business.DeleteContainerResult businessItem = new Business.DeleteContainerResult(); return(businessItem); }
public DeleteContainerResponse DeleteContainer(DeleteContainerRequest request) { lock (deleteContainerActionLock) { if (deleteContainerAction == null) { deleteContainerAction = PolicyInjection.Create <BusinessActions.DeleteContainerAction>(); } } request.DeleteContainerParameters.ContainerName = GetUserContainerName(request.DeleteContainerParameters.ContainerName); BusinessEntities.DeleteContainerParameters parameters = DeleteContainerParametersTranslator.TranslateFromServiceToBusiness(request.DeleteContainerParameters); BusinessEntities.DeleteContainerResult result = deleteContainerAction.Execute(parameters); DeleteContainerResponse response = new DeleteContainerResponse(); response.DeleteContainerResult = DeleteContainerResultTranslator.TranslateFromBusinessToService(result); return(response); }
public static DataContracts.DeleteContainerResult TranslateFromBusinessToService(Business.DeleteContainerResult businessItem) { if (businessItem == null) { return(null); } DataContracts.DeleteContainerResult serviceItem = new DataContracts.DeleteContainerResult(); return(serviceItem); }