public ActionResult Edit(News news, HttpPostedFileBase img, string[] tags) { if (ModelState.IsValid) { var co = new FunctionsController(); var id = co.CookieID(); string tag = ""; foreach (var item in tags) { tag += item + ";"; } news.news_tag = tag; news.user_id = id.user_id; news.news_img = images.UpLoadImages(img, news.news_img, "News"); newsDao.Edit(news); return(RedirectToAction("Index")); } return(View()); }