forked from sanchezvem/PyroFetes
correction types warehouses, products et suppliers
This commit is contained in:
@@ -19,7 +19,7 @@ public class CreateProductEndpoint(PyroFetesDbContext db)
|
||||
{
|
||||
var product = new Models.Product
|
||||
{
|
||||
Reference = req.References.ToString(),
|
||||
Reference = req.Reference,
|
||||
Name = req.Name!,
|
||||
Duration = req.Duration,
|
||||
Caliber = req.Caliber,
|
||||
@@ -75,7 +75,7 @@ public class CreateProductEndpoint(PyroFetesDbContext db)
|
||||
var response = new GetProductDto
|
||||
{
|
||||
Id = product.Id,
|
||||
Reference = req.References,
|
||||
Reference = req.Reference,
|
||||
Name = req.Name,
|
||||
Duration = req.Duration,
|
||||
Caliber = req.Caliber,
|
||||
|
||||
Reference in New Issue
Block a user