public IActionResult PostAsync([FromBody] Pallet pallet)
        {
            Console.WriteLine($"User {pallet.UserId} created pallet {pallet.PalletNumber} with item {pallet.LineDescription} and quantity {pallet.LineQuantity}");

            _palletRepository.Insert(pallet);

            return(Ok(pallet));
        }
Ejemplo n.º 2
0
 public static void Insert(Pallet obj)
 {
     repository.Insert(obj);
 }
Ejemplo n.º 3
0
 public bool Insert(string PalletName, int YardLocationId)
 {
     return(repository.Insert(PalletName, YardLocationId));
 }