Esempio n. 1
0
 public DayEntryModel(DateTime date)
 {
     _command = new DayEntryCommand()
     {
         Date = date.Date
     };
 }
Esempio n. 2
0
 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 }));
 }