Exemplo n.º 1
0
        public Int64 RespondentAnswerInsert(RespondentAnswer ModelClass)
        {
            Int64 Id = db.RespondentAnswers.Max(x => x.RespondentAnswerId);

            ModelClass.RespondentAnswerId = Id + 1;
            db.Entry(ModelClass);
            db.SaveChanges();
            return(ModelClass.RespondentAnswerId);
        }
Exemplo n.º 2
0
 public void RespondentAnswerDelete(RespondentAnswer ModelClass)
 {
     db.Entry(ModelClass).State = System.Data.Entity.EntityState.Deleted;
     db.SaveChanges();
 }