public ActionResult Publish(Post post) { User usr = (User)Session["User"]; post.User = usr; HttpPostedFileBase file = Request.Files["PostImage"]; PostService.CreatePostObject(post, file); return(View()); }