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