public void UpdateAnswer(AnswerEntityModel anwser) { context.Entry(anwser).State = EntityState.Modified; context.SaveChanges(); }
public void InsertAnswer(AnswerEntityModel anwser) { context.AnswersDbSet.Add(anwser); context.SaveChanges(); }
public void UpdateAnswer(AnswerEntityModel anwser) { context.Entry(anwser).State = EntityState.Modified; context.SaveChanges(); }
public void InsertAnswer(AnswerEntityModel anwser) { context.AnswersDbSet.Add(anwser); context.SaveChanges(); }