public void UpdateAnswer(Answer item) { Answer an = db.Answers.GetItem(item.Id_answer); db.Answers.Update(item); }
public void CreateAnswer(Answer item) { db.Answers.Create(item); db.Save(); // GetAllAnswer(); }