public void OnGet() { if (Type == null) { Type = new ExpertQuestionType(); } }
public void Update(ExpertQuestionType updatedType) { var entity = db.ExpertQuestionTypes.Attach(updatedType); entity.State = EntityState.Modified; }
public void add(ExpertQuestionType newType) { db.Add(newType); }