public async Task <IActionResult> PutTendPositionType(byte id, TendPositionType tendPositionType)
        {
            if (id != tendPositionType.TendPositionTypeId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TendPositionType> > PostTendPositionType(TendPositionType tendPositionType)
        {
            _context.TendPositionType.Add(tendPositionType);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TendPositionTypeExists(tendPositionType.TendPositionTypeId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTendPositionType", new { id = tendPositionType.TendPositionTypeId }, tendPositionType));
        }