public ActionResult PacketCategoryEdit(PacketsExtraProductCategoriesModel model) { if (ModelState.IsValid) { ViewBag.Kategoriler = _serviceExtraProductCategories.GetAll().Where(x => x.IsActive == true).Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); ViewBag.Paketler = _servicePackets.GetAll().Where(x => x.IsActive == true).Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); _servicePacketsExtraProductCategories.Update(model.ModelToEnity()); } return(RedirectToAction("PacketCategoryList")); }