public Indhold_activitet Update(Indhold_activitet indhold_activitetChanges)
        {
            var indhold_activitet = context.Indhold_activitets.Attach(indhold_activitetChanges);

            indhold_activitet.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(indhold_activitetChanges);
        }
        public Indhold_activitet Delete(int id)
        {
            Indhold_activitet indhold_activitet = context.Indhold_activitets.Find(id);

            if (indhold_activitet != null)
            {
                context.Indhold_activitets.Remove(indhold_activitet);
                context.SaveChanges();
            }
            return(indhold_activitet);
        }
 public Indhold_activitet Create(Indhold_activitet indhold_activitet)
 {
     context.Indhold_activitets.Add(indhold_activitet);
     context.SaveChanges();
     return(indhold_activitet);
 }