示例#1
0
        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);
        }
示例#2
0
 public async Task CreateAsync(ShotGlassPositionSetting shotGlassPositionSetting)
 {
     await _context.ShotGlassPositionSettings.InsertOneAsync(shotGlassPositionSetting);
 }