public ActionResult Create(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, null, "News"); newsDao.Create(news); return(RedirectToAction("Index")); } return(View()); }