public async Task <IActionResult> PutSmDestinationItemBatch(int id, SmDestinationItemBatch smDestinationItemBatch)
        {
            if (id != smDestinationItemBatch.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <SmDestinationItemBatch> > PostSmDestinationItemBatch(SmDestinationItemBatch smDestinationItemBatch)
        {
            _context.SmDestinationItemBatches.Add(smDestinationItemBatch);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetSmDestinationItemBatch", new { id = smDestinationItemBatch.Id }, smDestinationItemBatch));
        }