From a9bd0fa464f3ac7ac2ede7a3412691387430b09a Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 18 Feb 2019 15:44:13 +0300 Subject: [PATCH] Code cleanup --- .../src/ProductManagement.Domain/ProductManagement/Product.cs | 2 +- .../EntityFrameworkCore/ProductManagementDbContext.cs | 1 - .../ProductManagement/ProductsController.cs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Domain/ProductManagement/Product.cs b/samples/MicroserviceDemo/modules/product/src/ProductManagement.Domain/ProductManagement/Product.cs index 15fff0cd69..0d0362d8d3 100644 --- a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Domain/ProductManagement/Product.cs +++ b/samples/MicroserviceDemo/modules/product/src/ProductManagement.Domain/ProductManagement/Product.cs @@ -79,7 +79,7 @@ namespace ProductManagement private Product SetStockCountInternal(int stockCount, bool triggerEvent = true) { - if (StockCount < 0.0f) + if (StockCount < 0) { throw new ArgumentException($"{nameof(stockCount)} can not be less than 0!"); } diff --git a/samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs b/samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs index 03a3d52394..910f73a45e 100644 --- a/samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs +++ b/samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs @@ -29,6 +29,5 @@ namespace ProductManagement.EntityFrameworkCore options.Schema = Schema; }); } - } } \ No newline at end of file diff --git a/samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductsController.cs b/samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductsController.cs index 96e129ccb4..c5fb4fcaa3 100644 --- a/samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductsController.cs +++ b/samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductsController.cs @@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Mvc; using Volo.Abp; using Volo.Abp.Application.Dtos; using Volo.Abp.AspNetCore.Mvc; -using Volo.Abp.Auditing; namespace ProductManagement {