public void CanPopulate() { var surv = new Survey(); surv.FormHash = "something/something"; surv.SubDomain = "something"; }
public ActionResult Create(Survey survey) { if (ModelState.IsValid) { m_db.Surveys.Add(survey); m_db.SaveChanges(); return RedirectToAction("Prepare", new { id = survey.SurveyID }); } return View(survey); }
public ActionResult Edit(Survey survey) { if (ModelState.IsValid) { m_db.Entry(survey).State = EntityState.Modified; m_db.SaveChanges(); return RedirectToAction("Index"); } return View(survey); }
public void MarkModified(Survey s) { this.Entry(s).State = EntityState.Modified; }
public DbEntityEntry<Survey> Entry(Survey s) { return base.Entry<Survey>(s); }
public void MarkModified(Survey s) { }
public DbEntityEntry<Survey> Entry(Survey s) { return null; }