Example #1
0
        public void Deletar(Guid id)
        {
            var entity = collectionEntity.Find(e => e.Id == id).FirstOrDefault();

            _context.DeletaEntity(entity);
            _context.ActionInDatabase(() => collectionEntity.ReplaceOne(e => e.Id == id, entity));
        }