예제 #1
0
        public StoreSupplierResponse StoreSupplier(StoreSupplierRequest request)
        {
            StoreSupplierResponse     response = new StoreSupplierResponse();
            SupplierBusinessComponent bc       = DependencyInjectionHelper.GetSupplierBusinessComponent();
            Supplier supplier = SupplierAdapter.DtoToSupplier(request.Supplier);

            response.SupplierId = bc.StoreSupplier(supplier);

            return(response);
        }
예제 #2
0
        public StoreSupplierResponse StoreSupplier(StoreSupplierRequeset request)
        {
            var response = new StoreSupplierResponse();
            var bc       = DependencyInjectionHelper.GetBusinessComponent <SupplierBusinessComponent>();

            var supplier = SupplierAdapter.DtoToSupplier(request.Supplier);

            response.Id = bc.StoreSupplier(supplier);

            return(response);
        }
예제 #3
0
        public StoreSupplierResponse StoreSupplier(StoreSupplierRequest request)
        {
            if (!HttpContext.Current.User.Identity.IsAuthenticated)
            {
                throw new FaultException <NotAuthenticatedFault>(new NotAuthenticatedFault());
            }
            StoreSupplierResponse     response = new StoreSupplierResponse();
            SupplierBusinessComponent bc       = DependencyInjectionHelper.GetSupplierBusinessComponent();
            Supplier supplier = SupplierAdapter.DtoToSupplier(request.Supplier);

            response.SupplierId = bc.StoreSupplier(supplier);

            return(response);
        }