public ActionResult StworzBlog(Blogs blog, FormCollection form) { if (ModelState.IsValid) { //foreach (int i in kindID) Debug.WriteLine(i.ToString()); var test = form["KindsIds"]; blog.dataAktualizacji = DateTime.Now; blog.dataZalozenia = DateTime.Now; blog.followCount = 0; ObsługaBazyDanych.dodajNowyBlog(User.Identity.Name, blog, test); return(RedirectToAction("ListaBlogow")); } return(View()); }