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()); }
public int UpdateAnswer(AnswerAdd user) { return(dal.UpdateAnswer(user)); }
public int InsertAnswer(AnswerAdd Amodel) { return(dal.InsertEntity <AnswerAdd>(Amodel)); }