@ -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!");
}
@ -29,6 +29,5 @@ namespace ProductManagement.EntityFrameworkCore
options.Schema = Schema;
});
@ -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