public async Task <bool> UpdateAsync(ShotGlassPositionSetting shotGlassPositionSetting) { ReplaceOneResult updateResult = await _context .ShotGlassPositionSettings .ReplaceOneAsync( filter : g => g.Number == shotGlassPositionSetting.Number, replacement : shotGlassPositionSetting); return(updateResult.IsAcknowledged && updateResult.ModifiedCount > 0); }
public async Task CreateAsync(ShotGlassPositionSetting shotGlassPositionSetting) { await _context.ShotGlassPositionSettings.InsertOneAsync(shotGlassPositionSetting); }