public async Task <IActionResult> PutLecture(int id, Lecture lecture)
        {
            if (id != lecture.ID)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PutInformalGathering(int id, InformalGathering informalGathering)
        {
            if (id != informalGathering.ID)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }