예제 #1
0
        public SendtInnSpm SlettSporsmal(int id)
        {
            SendtInnSpm sporsmal = context.SendtInnSpms.Find(id);

            if (sporsmal != null)
            {
                context.SendtInnSpms.Remove(sporsmal);
                context.SaveChanges();
            }
            return(sporsmal);
        }
예제 #2
0
 public SendtInnSpm LeggTilSporsmal(SendtInnSpm sporsmal)
 {
     context.SendtInnSpms.Add(sporsmal);
     context.SaveChanges();
     return(sporsmal);
 }