forked from sanchezvem/pyrofetes-backend
MAJ update movement
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using API.DTO.Movement.Request;
|
||||
using API.DTO.Movement.Response;
|
||||
using FastEndpoints;
|
||||
using PyroFetes.DTO.Movement.Request;
|
||||
|
||||
namespace PyroFetes.Endpoints.Movement;
|
||||
|
||||
@@ -17,9 +18,11 @@ public class CreateMovementEndpoint(PyroFetesDbContext pyrofetesdbcontext) : End
|
||||
Models.Movement movement = new ()
|
||||
{
|
||||
Date = req.Date,
|
||||
ProductId = req.ProductId,
|
||||
Start = req.Start,
|
||||
Arrival = req.Arrival,
|
||||
Quantity = req.Quantity
|
||||
Quantity = req.Quantity,
|
||||
Type = req.Type,
|
||||
};
|
||||
|
||||
pyrofetesdbcontext.Movements.Add(movement);
|
||||
|
||||
Reference in New Issue
Block a user