Esempio n. 1
0
        public void CanPopulate()
        {
            var surv = new Survey();

            surv.FormHash = "something/something";
            surv.SubDomain = "something";
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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;
 }