public async Task <ActionResult> DeleteConfirmed(int id) { SurecHareket surecHareket = await db.SurecHarekets.FindAsync(id); db.SurecHarekets.Remove(surecHareket); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "SurecHareketId,ProjeId,GelisTarih,GidisTarih,UserId")] SurecHareket surecHareket) { if (ModelState.IsValid) { db.Entry(surecHareket).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(surecHareket)); }
public async Task <ActionResult> Create([Bind(Include = "SurecHareketId,ProjeId,GelisTarih,GidisTarih,UserId")] SurecHareket surecHareket) { if (ModelState.IsValid) { db.SurecHarekets.Add(surecHareket); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(surecHareket)); }
// GET: SurecHarekets/Delete/5 public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SurecHareket surecHareket = await db.SurecHarekets.FindAsync(id); if (surecHareket == null) { return(HttpNotFound()); } return(View(surecHareket)); }