Beispiel #1
0
        public ActionResult Create(InvestorContact investorcontact)
        {
            if (ModelState.IsValid)
            {
                db.InvestorContacts.Add(investorcontact);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(investorcontact);
        }
Beispiel #2
0
 public ActionResult Edit(InvestorContact investorcontact)
 {
     if (ModelState.IsValid)
     {
         db.Entry(investorcontact).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(investorcontact);
 }