Пример #1
0
        public ActionResult StworzPost(Post post, FormCollection form)
        {
            var idBlogu = (int)TempData["BlogPostId"];

            if (ModelState.IsValid)
            {
                var test = form["TagsIds"];
                ObsługaBazyDanych.dodajPost(idBlogu, post, test);
                return(RedirectToAction("WyswietlBLog", new { id = idBlogu }));
            }
            return(View());
        }