예제 #1
0
 public void AddDebate(Debate debate)
 {
     db.Debate.Add(debate);
 }
예제 #2
0
 public void UpdateDebate(Debate debate)
 {
     db.Entry(debate).State = EntityState.Modified;
 }
예제 #3
0
        public Debate FindDebate(int?debateId)
        {
            Debate debate = db.Debate.Find(debateId);

            return(debate);
        }