Ejemplo n.º 1
0
        public ActionResult Publish(Post post)
        {
            User usr = (User)Session["User"];

            post.User = usr;
            HttpPostedFileBase file = Request.Files["PostImage"];

            PostService.CreatePostObject(post, file);

            return(View());
        }