private void Add(string logEntry) { _dataTools.AddModel(new LogEntryDataModel { LogText = logEntry, CreatedOn = DateTime.Now }); }
private async Task AddRecord <T>(T model) where T : class, IDataModel { model.Id = Guid.NewGuid(); await _crudDataTools.AddModel(model); }