public ActionResult Create(imagesComplex imagescomplex) { if (ModelState.IsValid) { db.imagesComplex.Add(imagescomplex); db.SaveChanges(); return RedirectToAction("Index"); } return View(imagescomplex); }
public ActionResult Edit(imagesComplex imagescomplex) { if (ModelState.IsValid) { db.Entry(imagescomplex).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(imagescomplex); }