Browse Source

Code cleanup

pull/819/head
Halil ibrahim Kalkan 7 years ago
parent
commit
a9bd0fa464
  1. 2
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Domain/ProductManagement/Product.cs
  2. 1
      samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs
  3. 1
      samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductsController.cs

2
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!");
}

1
samples/MicroserviceDemo/modules/product/src/ProductManagement.EntityFrameworkCore/ProductManagement/EntityFrameworkCore/ProductManagementDbContext.cs

@ -29,6 +29,5 @@ namespace ProductManagement.EntityFrameworkCore
options.Schema = Schema;
});
}
}
}

1
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
{

Loading…
Cancel
Save