Exemple #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            BaglantiKapasite baglantiKapasite = await db.BaglantiKapasites.FindAsync(id);

            db.BaglantiKapasites.Remove(baglantiKapasite);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        // 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));
        }