public ActionResult Create(Categories model)
 {
     Categories c = new Categories();
     c.name = model.name;
     c.description = model.description;
     ent.Categories.Add(c);
     ent.SaveChanges();
     return RedirectToAction("Index");
 }
 public ActionResult Edit(Categories model)
 {
     var degisen = (from kategori in ent.Categories
                    where kategori.id == model.id
                    select kategori).First();
     degisen.name = model.name;
     degisen.description = model.description;
     ent.SaveChanges();
     return RedirectToAction("Index");
 }