public async Task <ActionResult> DeleteConfirmed(int id)
        {
            GenelUrunler genelurunler = await db.GenelUrunler.FindAsync(id);

            db.GenelUrunler.Remove(genelurunler);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "Urun_id,Urun_adi,Urun_kodu")] GenelUrunler genelurunler)
        {
            if (ModelState.IsValid)
            {
                db.Entry(genelurunler).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(genelurunler));
        }
        public async Task <ActionResult> Create([Bind(Include = "Urun_id,Urun_adi,Urun_kodu")] GenelUrunler genelurunler)
        {
            if (ModelState.IsValid)
            {
                genelurunler.Urun_Ol_Tarih = DateTime.Now;
                db.GenelUrunler.Add(genelurunler);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(genelurunler));
        }
        // GET: /GenelUrunler/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            GenelUrunler genelurunler = await db.GenelUrunler.FindAsync(id);

            if (genelurunler == null)
            {
                return(HttpNotFound());
            }
            return(View(genelurunler));
        }