Beispiel #1
0
        public async Task Create(CreateProductInput input)
        {
            var tenant = AbpSession.TenantId;

            MyPassword.Core.Product.Product product = new Core.Product.Product();
            product.UpdateName(input.Name);
            product.UpdateNumber(input.Number, _policy);
            product.UpdatePrice(input.Price, _policy);
            await _productRepository.InsertAsync(product);
        }