public async Task <ActionResult> DeleteConfirmed(int id) { IsPlanTarih isPlanTarih = await db.IsPlanTarihs.FindAsync(id); db.IsPlanTarihs.Remove(isPlanTarih); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "IsPlanTarihId,IsId,BaslangicTarih,BitisTarih,SurecId")] IsPlanTarih isPlanTarih) { if (ModelState.IsValid) { db.Entry(isPlanTarih).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(isPlanTarih)); }
public async Task <ActionResult> Create([Bind(Include = "IsPlanTarihId,IsId,BaslangicTarih,BitisTarih,SurecId")] IsPlanTarih isPlanTarih) { if (ModelState.IsValid) { db.IsPlanTarihs.Add(isPlanTarih); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(isPlanTarih)); }
// GET: IsPlanTarihs/Delete/5 public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IsPlanTarih isPlanTarih = await db.IsPlanTarihs.FindAsync(id); if (isPlanTarih == null) { return(HttpNotFound()); } return(View(isPlanTarih)); }