public async Task AddAsync(UserDto model) { await dataProvider.AddAsync(new User { ActiveStatu = (Mini.Data.Entity.ActiveStatu)model.ActiveStatu }); }
public async Task AddAsync(BaseDataDto baseData) { await dataProvider.AddAsync(new BaseData { ID = baseData.ID, CreateTime = baseData.CreateTime, Icon = baseData.Icon, IsDefault = baseData.IsDefault, Key = baseData.Key, Type = baseData.Type, UpdateTime = baseData.UpdateTime, Value = baseData.Value }); }
public async Task AddAsync(T entity) { await _dataProvider.AddAsync(entity); }
public override void SaveMessage(LogRecord record) { YetaWFManager.Syncify(async() => { // Logging is advertised as Sync - use NLog instead await DataProvider.AddAsync(record); }); }