public ActionResult Edit([Bind(Include = "id_current_Quarter,idcurrent_Quarter,start_Date,end_Date")] currentQuarter currentQuarter) { if (ModelState.IsValid) { db.Entry(currentQuarter).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(currentQuarter)); }
public ActionResult Create([Bind(Include = "id_current_Quarter,idcurrent_Quarter,start_Date,end_Date")] currentQuarter currentQuarter) { if (ModelState.IsValid) { db.currentQuarters.Add(currentQuarter); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(currentQuarter)); }
// GET: currentQuarters/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } currentQuarter currentQuarter = db.currentQuarters.Find(id); if (currentQuarter == null) { return(HttpNotFound()); } return(View(currentQuarter)); }