示例#1
0
 private LogEvent MapToLogEvent(ITodoEvent todoEvent)
 {
     return(new LogEvent()
     {
         EventType = todoEvent.EventType,
         PersonName = todoEvent.PersonName,
         DateTime = DateTime.Now
     });
 }
示例#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);
 }
示例#3
0
 public bool Save(ITodoEvent todoEvent)
 {
     _logService.Log(MapToLogEvent(todoEvent));
     return(_dbService.Save(todoEvent));
 }