public ActionResult Create(EntryCreate model) { var userId = User.Identity.GetUserId(); model.CurrentUserId = userId; if (!ModelState.IsValid) { return(View(model)); } else { EntryService service = CreateEntryService(); service.CreateEntry(model); return(RedirectToAction("Index")); } }