Exemple #1
0
        public int UpdateAnswer(AnswerAdd user)
        {
            DbEntityEntry <AnswerAdd> entry = context.Entry <AnswerAdd>(user);

            entry.State = System.Data.Entity.EntityState.Unchanged;
            entry.Property("AnswerIsDelete").IsModified = true;
            return(context.SaveChanges());
        }
Exemple #2
0
 public int UpdateAnswer(AnswerAdd user)
 {
     return(dal.UpdateAnswer(user));
 }
Exemple #3
0
 public int InsertAnswer(AnswerAdd Amodel)
 {
     return(dal.InsertEntity <AnswerAdd>(Amodel));
 }