public void UpdateOutput(Tb_M_Participant model) { using (DBModel db = new DBModel()) { db.Entry(model).State = System.Data.EntityState.Modified; db.SaveChanges(); } }
public Tb_M_Participant Insert(Tb_M_Participant model) { using (DBModel db = new DBModel()) { db.Tb_M_Participant.Add(model); db.SaveChanges(); return(model); } }