public async Task <ActionResult> DeleteConfirmed(int id) { BaglantiKapasite baglantiKapasite = await db.BaglantiKapasites.FindAsync(id); db.BaglantiKapasites.Remove(baglantiKapasite); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "BaglantiKapasiteId,BağlantiId,GirisKapasite,CikisKapasite,KullanilanDevre,BosDevre")] BaglantiKapasite baglantiKapasite) { if (ModelState.IsValid) { db.Entry(baglantiKapasite).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(baglantiKapasite)); }
public async Task <ActionResult> Create([Bind(Include = "BaglantiKapasiteId,BağlantiId,GirisKapasite,CikisKapasite,KullanilanDevre,BosDevre")] BaglantiKapasite baglantiKapasite) { if (ModelState.IsValid) { db.BaglantiKapasites.Add(baglantiKapasite); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(baglantiKapasite)); }
// GET: BaglantiKapasites/Delete/5 public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BaglantiKapasite baglantiKapasite = await db.BaglantiKapasites.FindAsync(id); if (baglantiKapasite == null) { return(HttpNotFound()); } return(View(baglantiKapasite)); }