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