示例#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);
 }