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)); }
public static void Insert(Pallet obj) { repository.Insert(obj); }
public bool Insert(string PalletName, int YardLocationId) { return(repository.Insert(PalletName, YardLocationId)); }