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); }
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); }
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); }