public async Task <IActionResult> PutSmShippedItemBatch(int id, SmShippedItemBatch smShippedItemBatch)
        {
            if (id != smShippedItemBatch.Id)
            {
                return(BadRequest());
            }

            _context.Entry(smShippedItemBatch).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SmShippedItemBatchExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <SmShippedItemBatch> > PostSmShippedItemBatch(SmShippedItemBatch smShippedItemBatch)
        {
            _context.SmShippedItemBatches.Add(smShippedItemBatch);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetSmShippedItemBatch", new { id = smShippedItemBatch.Id }, smShippedItemBatch));
        }