public ActionResult DeleteConfirmed(int id) { FormulaImportRequestListItem formulaImportRequestListItem = db.FormulaImportRequestListItems.Find(id); db.FormulaImportRequestListItems.Remove(formulaImportRequestListItem); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "RequestId,SourceSystem,RequestStatus,UpdatedBy,UpdatedDate")] FormulaImportRequestListItem formulaImportRequestListItem) { if (ModelState.IsValid) { db.Entry(formulaImportRequestListItem).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(formulaImportRequestListItem)); }
public ActionResult Create([Bind(Include = "RequestId,SourceSystem,RequestStatus,UpdatedBy,UpdatedDate")] FormulaImportRequestListItem formulaImportRequestListItem) { if (ModelState.IsValid) { db.FormulaImportRequestListItems.Add(formulaImportRequestListItem); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(formulaImportRequestListItem)); }
// GET: FormulaImportRequest/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } FormulaImportRequestListItem formulaImportRequestListItem = db.FormulaImportRequestListItems.Find(id); if (formulaImportRequestListItem == null) { return(HttpNotFound()); } return(View(formulaImportRequestListItem)); }