public async Task <ActionResult <ActivityEv> > PostActivityEv(ActivityEv activityEv)
        {
            _context.activityEvs.Add(activityEv);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetActivityEv", new { id = activityEv.Id }, activityEv));
        }
        public async Task <IActionResult> PutActivityEv(int id, ActivityEv activityEv)
        {
            if (id != activityEv.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }