public async Task <ActionResult <CheckListLog> > PostCheckListLog(CheckListLog checkListLog)
        {
            _context.CheckListLog.Add(checkListLog);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetCheckListLog", new { id = checkListLog.Id }, checkListLog));
        }
        public async Task <IActionResult> PutCheckListLog(int id, CheckListLog checkListLog)
        {
            if (id != checkListLog.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }