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