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