public DayEntryModel(DateTime date) { _command = new DayEntryCommand() { Date = date.Date }; }
public ActionResult Entry(DayEntryCommand command) { CommandBus.Execute(command); Notifier.Success("Entry saved for {0}", command.Date); return(RedirectToAction("Index", "Month", new { command.Date.Year, command.Date.Month })); }