Example #1
0
 private LogEvent MapToLogEvent(ITodoEvent todoEvent)
 {
     return(new LogEvent()
     {
         EventType = todoEvent.EventType,
         PersonName = todoEvent.PersonName,
         DateTime = DateTime.Now
     });
 }
Example #2
0
 public bool Save(ITodoEvent todoEvent)
 {
     Console.WriteLine($"\n Saved to db data: \n Event type: {todoEvent.EventType} \n Person Name: {todoEvent.PersonName}");
     return(true);
 }
Example #3
0
 public bool Save(ITodoEvent todoEvent)
 {
     _logService.Log(MapToLogEvent(todoEvent));
     return(_dbService.Save(todoEvent));
 }