public ActionResult Edit(club_group group) { if (ModelState.IsValid) { Db.Entry(group).State = EntityState.Modified; group.Seo = OK.ConvertSeo(group.Name); Db.SaveChanges(); return(RedirectToAction("Index")); } return(View(group)); }
public ActionResult Edit(club_config config) { if (ModelState.IsValid) { Db.Entry(config).State = EntityState.Modified; Db.SaveChanges(); return(RedirectToAction("Index")); } return(View(config)); }
public ActionResult Edit(club_notice notice) { if (ModelState.IsValid) { Db.Entry(notice).State = EntityState.Modified; Db.SaveChanges(); return(RedirectToAction("index")); } return(View(notice)); }
public ActionResult Edit(club_category category) { if (ModelState.IsValid) { Db.Entry(category).State = EntityState.Modified; category.Seo = OK.ConvertSeo(category.Name); Db.SaveChanges(); return(RedirectToAction("index")); } return(View(category)); }
public ActionResult Edit(club_postcomment comment) { if (ModelState.IsValid) { Db.Entry(comment).State = EntityState.Modified; Db.SaveChanges(); return(RedirectToAction("index")); } ViewBag.PostId = new SelectList(Db.club_post, "Id", "Title"); return(View(comment)); }
public ActionResult Edit(club_post post) { if (ModelState.IsValid) { Db.Entry(post).State = EntityState.Modified; post.Seo = OK.ConvertSeo(post.Title); Db.SaveChanges(); return(RedirectToAction("index")); } ViewBag.CategoryId = new SelectList(Db.club_category, "Id", "Name"); return(View(post)); }