public ActionResult Create(Post post, int authorId) { if (ModelState.IsValid) { post.Author = repository.Find<Account>(x => x.Id == authorId); repository.Save(post); return RedirectToAction("Index"); } return RedirectToAction("New"); }