public async Task <IActionResult> PutConSmss([FromRoute] int id, [FromBody] ConSmss conSmss)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != conSmss.AutoId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostConSmss([FromBody] ConSmss conSmss)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.ConSmss.Add(conSmss);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetConSmss", new { id = conSmss.AutoId }, conSmss));
        }